Fix runtime criticals
This commit is contained in:
parent
24f525628b
commit
fa43581ad3
|
@ -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);
|
||||
|
|
|
@ -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