summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-06-26 12:07:42 +0200
committermathieui <mathieui@mathieui.net>2021-06-26 12:07:42 +0200
commite159fad5650eddb846266a9bd5b7cdc25d056f74 (patch)
tree06f10c06934ade0625715a12b382c722a301c958
parentc2967689875e66fc6e3473c2db41974688104786 (diff)
downloadpoezio-e159fad5650eddb846266a9bd5b7cdc25d056f74.tar.gz
poezio-e159fad5650eddb846266a9bd5b7cdc25d056f74.tar.bz2
poezio-e159fad5650eddb846266a9bd5b7cdc25d056f74.tar.xz
poezio-e159fad5650eddb846266a9bd5b7cdc25d056f74.zip
fix: fallback to server jid in conversationtab
if there is no userpart and no known nick, it is a server JID
-rw-r--r--poezio/tabs/conversationtab.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/poezio/tabs/conversationtab.py b/poezio/tabs/conversationtab.py
index eb6e97b5..bcffb22d 100644
--- a/poezio/tabs/conversationtab.py
+++ b/poezio/tabs/conversationtab.py
@@ -366,7 +366,7 @@ class ConversationTab(OneToOneTab):
else:
if self.nick:
return self.nick
- return self.jid.user
+ return self.jid.user or self.jid.domain
def on_input(self, key, raw):
if not raw and key in self.key_func: