Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwurstsalat <mailtrash@posteo.de>2022-08-31 21:06:27 +0300
committerwurstsalat <mailtrash@posteo.de>2022-08-31 21:06:27 +0300
commit6cd28e283de34c997c27821101cd51e35ac55060 (patch)
tree2329d7f2c36cd378e54cb7b558aee818a2ec1d51
parent8565a65898380f1875b13e306c4f571193026195 (diff)
cfix: DND: Fix moving chat list items to other workspaces
-rw-r--r--gajim/gtk/chat_list_stack.py9
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