Fix runtime criticals
This commit is contained in:
parent
24f525628b
commit
fa43581ad3
|
@ -35,9 +35,11 @@ public class ConversationManager : StreamInteractionModule, Object {
|
|||
Jid store_jid = type == Conversation.Type.GROUPCHAT ? jid.bare_jid : jid;
|
||||
|
||||
// Do we already have a conversation for this jid?
|
||||
foreach (var conversation in conversations[account][store_jid]) {
|
||||
if (conversation.type_ == type) {
|
||||
return conversation;
|
||||
if (conversations[account].has_key(store_jid)) {
|
||||
foreach (var conversation in conversations[account][store_jid]) {
|
||||
if (conversation.type_ == type) {
|
||||
return conversation;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -46,8 +46,8 @@ public class ConversationItemSkeleton : EventBox {
|
|||
default_header.add_item(item);
|
||||
}
|
||||
Widget? widget = item.get_widget(Plugins.WidgetType.GTK) as Widget;
|
||||
widget.valign = Align.END;
|
||||
if (widget != null) {
|
||||
widget.valign = Align.END;
|
||||
header_content_box.add(widget);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue