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
4d87b4ee
Commit
4d87b4ee
authored
Sep 22, 2022
by
Tijmen de Mes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Call failed message update later
parent
ace1ca57
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
chatwindow.py
blink/chatwindow.py
+2
-2
No files found.
blink/chatwindow.py
View file @
4d87b4ee
...
@@ -44,7 +44,7 @@ from blink.history import HistoryManager
...
@@ -44,7 +44,7 @@ from blink.history import HistoryManager
from
blink.messages
import
MessageManager
,
BlinkMessage
from
blink.messages
import
MessageManager
,
BlinkMessage
from
blink.resources
import
IconManager
,
Resources
from
blink.resources
import
IconManager
,
Resources
from
blink.sessions
import
ChatSessionModel
,
ChatSessionListView
,
SessionManager
,
StreamDescription
from
blink.sessions
import
ChatSessionModel
,
ChatSessionListView
,
SessionManager
,
StreamDescription
from
blink.util
import
run_in_gui_thread
from
blink.util
import
run_in_gui_thread
,
call_later
from
blink.widgets.color
import
ColorHelperMixin
from
blink.widgets.color
import
ColorHelperMixin
from
blink.widgets.graph
import
Graph
from
blink.widgets.graph
import
Graph
from
blink.widgets.otr
import
OTRWidget
from
blink.widgets.otr
import
OTRWidget
...
@@ -2489,7 +2489,7 @@ class ChatWindow(base_class, ui_class, ColorHelperMixin):
...
@@ -2489,7 +2489,7 @@ class ChatWindow(base_class, ui_class, ColorHelperMixin):
if
session
is
None
:
if
session
is
None
:
return
return
session
.
chat_widget
.
add_message
(
ChatStatus
(
f
'Delivery failed: {notification.data.data.code} - {notification.data.data.reason}'
))
session
.
chat_widget
.
add_message
(
ChatStatus
(
f
'Delivery failed: {notification.data.data.code} - {notification.data.data.reason}'
))
session
.
chat_widget
.
update_message_status
(
id
=
notification
.
data
.
id
,
status
=
'failed'
)
call_later
(
.5
,
session
.
chat_widget
.
update_message_status
,
id
=
notification
.
data
.
id
,
status
=
'failed'
)
def
_NH_BlinkMessageWillRemove
(
self
,
notification
):
def
_NH_BlinkMessageWillRemove
(
self
,
notification
):
blink_session
=
notification
.
sender
blink_session
=
notification
.
sender
...
...
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