Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
5fad8a2d
Commit
5fad8a2d
authored
Aug 18, 2022
by
Tijmen de Mes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed storing 'right' display name in history
parent
d1297740
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
history.py
blink/history.py
+7
-4
No files found.
blink/history.py
View file @
5fad8a2d
...
...
@@ -317,12 +317,15 @@ class MessageHistory(object, metaclass=Singleton):
if
match
:
remote_uri
=
match
.
group
(
'number'
)
try
:
contact
=
next
(
contact
for
contact
in
AddressbookManager
()
.
get_contacts
()
if
remote_uri
in
(
addr
.
uri
for
addr
in
contact
.
uris
))
except
StopIteration
:
if
direction
==
'outgoing'
:
display_name
=
message
.
sender
.
display_name
else
:
display_name
=
contact
.
name
try
:
contact
=
next
(
contact
for
contact
in
AddressbookManager
()
.
get_contacts
()
if
remote_uri
in
(
addr
.
uri
for
addr
in
contact
.
uris
))
except
StopIteration
:
display_name
=
message
.
sender
.
display_name
else
:
display_name
=
contact
.
name
timestamp_native
=
message
.
timestamp
timestamp_utc
=
timestamp_native
.
replace
(
tzinfo
=
timezone
.
utc
)
...
...
Write
Preview
Markdown
is supported
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