diff options
author | wurstsalat <mailtrash@posteo.de> | 2022-08-31 21:06:27 +0300 |
---|---|---|
committer | wurstsalat <mailtrash@posteo.de> | 2022-08-31 21:06:27 +0300 |
commit | 6cd28e283de34c997c27821101cd51e35ac55060 (patch) | |
tree | 2329d7f2c36cd378e54cb7b558aee818a2ec1d51 | |
parent | 8565a65898380f1875b13e306c4f571193026195 (diff) |
cfix: DND: Fix moving chat list items to other workspaces
-rw-r--r-- | gajim/gtk/chat_list_stack.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gajim/gtk/chat_list_stack.py b/gajim/gtk/chat_list_stack.py index 7a603287e..1e13f6256 100644 --- a/gajim/gtk/chat_list_stack.py +++ b/gajim/gtk/chat_list_stack.py @@ -243,7 +243,14 @@ class ChatListStack(Gtk.Stack, EventHelper): if not workspace_id: workspace_id = app.window.add_workspace(switch=False) - source_chatlist = self.get_chatlist(params.source_workspace_id) + if not params.source_workspace_id: + source_chatlist = self.get_current_chat_list() + if source_chatlist is None: + return + + else: + source_chatlist = self.get_chatlist(params.source_workspace_id) + type_ = source_chatlist.get_chat_type(params.account, params.jid) if type_ is None: return |