Fix runtime criticals

This commit is contained in:
fiaxh 2019-06-16 15:17:08 +02:00
parent 24f525628b
commit fa43581ad3
2 changed files with 6 additions and 4 deletions

View file

@ -35,11 +35,13 @@ 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?
if (conversations[account].has_key(store_jid)) {
foreach (var conversation in conversations[account][store_jid]) {
if (conversation.type_ == type) {
return conversation;
}
}
}
// Create a new converation
Conversation conversation = new Conversation(jid, account, type);

View file

@ -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);
}