Commit 56378e12 authored by Nico's avatar Nico
Browse files

Fix empty contact name in private messages

Fixes #55.
parent 0ed9ee3c
Pipeline #4642 passed with stage
in 4 minutes and 19 seconds
...@@ -116,7 +116,7 @@ class MainWindowContainer(Container): ...@@ -116,7 +116,7 @@ class MainWindowContainer(Container):
def _get_contact_name(self, contact_id): def _get_contact_name(self, contact_id):
name = "" name = ""
for contact in self.contacts_list: for contact in self.contacts_list:
if contact["contactId"] is contact_id: if contact["contactId"] == contact_id:
name = contact["author"]["name"] name = contact["author"]["name"]
if "alias" in contact: if "alias" in contact:
name = contact["alias"] name = contact["alias"]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment