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
6b48bfd9
Commit
6b48bfd9
authored
2 years ago
by
Tijmen de Mes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for encryption icon in chat messages
parent
30ba24fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
chatwindow.py
blink/chatwindow.py
+6
-0
No files found.
blink/chatwindow.py
View file @
6b48bfd9
...
...
@@ -645,6 +645,7 @@ class ChatWidget(base_class, ui_class):
checkmark_icon
=
IconDescriptor
(
Resources
.
get
(
'icons/checkmark.svg'
))
warning_icon
=
IconDescriptor
(
Resources
.
get
(
'icons/warning.svg'
))
done_all_icon
=
IconDescriptor
(
Resources
.
get
(
'icons/done-all.svg'
))
encrypted_icon
=
IconDescriptor
(
Resources
.
get
(
'icons/lock-grey-12.svg'
))
chat_template
=
open
(
Resources
.
get
(
'chat/template.html'
))
.
read
()
loading_template
=
open
(
Resources
.
get
(
'chat/loading.html'
))
.
read
()
...
...
@@ -707,6 +708,11 @@ class ChatWidget(base_class, ui_class):
insertion_point
=
self
.
chat_element
.
findFirst
(
f
'span#status-{id}'
)
insertion_point
.
replace
(
ChatMessageStatus
(
status
,
icon
.
filename
,
id
)
.
to_html
(
self
.
style
))
def
update_message_encryption
(
self
,
id
,
is_secure
=
False
):
if
is_secure
is
True
:
insertion_point
=
self
.
chat_element
.
findFirst
(
f
'span#encryption-{id}'
)
insertion_point
.
appendInside
(
f
'<img src={self.encrypted_icon.filename} class="status-icon is-secure">'
)
def
show_loading_screen
(
self
,
visible
):
if
visible
:
self
.
loading_element
.
appendInside
(
self
.
loading_template
)
...
...
This diff is collapsed.
Click to expand it.
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