Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
briar
Briar GTK
Commits
56378e12
Commit
56378e12
authored
Jul 18, 2020
by
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
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
briar-gtk/briar_gtk/containers/main_window.py
View file @
56378e12
...
@@ -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"
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment