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
3b8ac21e
Commit
3b8ac21e
authored
Sep 06, 2022
by
Tijmen de Mes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent history messages with no contact
parent
39f030b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
messages.py
blink/messages.py
+3
-0
No files found.
blink/messages.py
View file @
3b8ac21e
...
@@ -708,6 +708,9 @@ class MessageManager(object, metaclass=Singleton):
...
@@ -708,6 +708,9 @@ class MessageManager(object, metaclass=Singleton):
if
message
.
contact
!=
account
.
id
:
if
message
.
contact
!=
account
.
id
:
self
.
_save_pgp_key
(
message
[
'content'
],
message
[
'contact'
])
self
.
_save_pgp_key
(
message
[
'content'
],
message
[
'contact'
])
elif
content_type
.
startswith
(
'text/'
):
elif
content_type
.
startswith
(
'text/'
):
if
message
[
'contact'
]
is
None
:
continue
from
blink.contacts
import
URIUtils
from
blink.contacts
import
URIUtils
contact
,
contact_uri
=
URIUtils
.
find_contact
(
message
[
'contact'
])
contact
,
contact_uri
=
URIUtils
.
find_contact
(
message
[
'contact'
])
...
...
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