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
9e4d5bc5
Commit
9e4d5bc5
authored
May 18, 2022
by
Tijmen de Mes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Save id from MSRP messages
parent
143b6ca3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
chatwindow.py
blink/chatwindow.py
+5
-2
No files found.
blink/chatwindow.py
View file @
9e4d5bc5
...
@@ -718,7 +718,8 @@ class ChatWidget(base_class, ui_class):
...
@@ -718,7 +718,8 @@ class ChatWidget(base_class, ui_class):
else
:
else
:
raise
RuntimeError
(
"Cannot send messages in the '
%
s' state"
%
blink_session
.
state
)
raise
RuntimeError
(
"Cannot send messages in the '
%
s' state"
%
blink_session
.
state
)
self
.
session
.
chat_stream
.
send_message
(
content
,
content_type
,
recipients
,
courtesy_recipients
,
subject
,
timestamp
,
required
,
additional_headers
)
message_id
=
self
.
session
.
chat_stream
.
send_message
(
content
,
content_type
,
recipients
,
courtesy_recipients
,
subject
,
timestamp
,
required
,
additional_headers
)
return
message_id
def
_align_chat
(
self
,
scroll
=
False
):
def
_align_chat
(
self
,
scroll
=
False
):
# frame_height = self.chat_view.page().mainFrame().contentsSize().height()
# frame_height = self.chat_view.page().mainFrame().contentsSize().height()
...
@@ -879,10 +880,12 @@ class ChatWidget(base_class, ui_class):
...
@@ -879,10 +880,12 @@ class ChatWidget(base_class, ui_class):
return
return
id
=
str
(
uuid
.
uuid4
())
id
=
str
(
uuid
.
uuid4
())
try
:
try
:
self
.
send_message
(
text
,
content_type
=
'text/html'
,
id
=
id
)
msg_id
=
self
.
send_message
(
text
,
content_type
=
'text/html'
,
id
=
id
)
except
Exception
as
e
:
except
Exception
as
e
:
self
.
add_message
(
ChatStatus
(
'Error sending message:
%
s'
%
e
))
# decide what type to use here. -Dan
self
.
add_message
(
ChatStatus
(
'Error sending message:
%
s'
%
e
))
# decide what type to use here. -Dan
else
:
else
:
if
msg_id
is
not
None
:
id
=
msg_id
account
=
self
.
session
.
blink_session
.
account
account
=
self
.
session
.
blink_session
.
account
content
=
HtmlProcessor
.
autolink
(
text
)
content
=
HtmlProcessor
.
autolink
(
text
)
sender
=
ChatSender
(
account
.
display_name
,
account
.
id
,
self
.
user_icon
.
filename
)
sender
=
ChatSender
(
account
.
display_name
,
account
.
id
,
self
.
user_icon
.
filename
)
...
...
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