diff options
author | fiaxh <git@mx.ax.lt> | 2017-03-24 22:57:05 +0100 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-03-31 01:21:35 +0200 |
commit | 7d2f995a097086be01426cc79c9c801dabaf9e3b (patch) | |
tree | 32b00adeaec82843a9f41fb3de17adc25e62fcc1 /main/src/ui/add_conversation/chat | |
parent | 3733d24a9066bdd3e038d642a62cf642abd0b0bf (diff) | |
download | dino-7d2f995a097086be01426cc79c9c801dabaf9e3b.tar.gz dino-7d2f995a097086be01426cc79c9c801dabaf9e3b.zip |
Fix conversation last_active
Diffstat (limited to 'main/src/ui/add_conversation/chat')
-rw-r--r-- | main/src/ui/add_conversation/chat/dialog.vala | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/main/src/ui/add_conversation/chat/dialog.vala b/main/src/ui/add_conversation/chat/dialog.vala index 15624731..910e7264 100644 --- a/main/src/ui/add_conversation/chat/dialog.vala +++ b/main/src/ui/add_conversation/chat/dialog.vala @@ -71,9 +71,8 @@ public class Dialog : Gtk.Dialog { protected void on_ok_button_clicked() { ListRow? selected_row = roster_list.get_selected_row() as ListRow; if (selected_row != null) { - // TODO move in list to front immediately - stream_interactor.get_module(ConversationManager.IDENTITY).ensure_start_conversation(selected_row.jid, selected_row.account); - Conversation conversation = stream_interactor.get_module(ConversationManager.IDENTITY).get_conversation(selected_row.jid, selected_row.account); + Conversation conversation = stream_interactor.get_module(ConversationManager.IDENTITY).create_conversation(selected_row.jid, selected_row.account, Conversation.Type.CHAT); + stream_interactor.get_module(ConversationManager.IDENTITY).start_conversation(conversation, true); conversation_opened(conversation); } close(); |