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
b64cebbf
Commit
b64cebbf
authored
9 years ago
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed body to content in chat messages as per latest sipsimple
parent
e3771d3d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
chatwindow.py
blink/chatwindow.py
+3
-3
No files found.
blink/chatwindow.py
View file @
b64cebbf
...
...
@@ -2054,14 +2054,14 @@ class ChatWindow(base_class, ui_class, ColorHelperMixin):
message
=
notification
.
data
.
message
if
message
.
body
.
startswith
(
'?OTRv2?'
):
if
message
.
content
.
startswith
(
'?OTRv2?'
):
# TODO: add support for OTR -Saul
return
if
message
.
content_type
.
startswith
(
'image/'
):
content
=
u'''<img src="data:{};base64,{}" class="scaled-to-fit" />'''
.
format
(
message
.
content_type
,
message
.
body
.
encode
(
'base64'
)
.
rstrip
())
content
=
u'''<img src="data:{};base64,{}" class="scaled-to-fit" />'''
.
format
(
message
.
content_type
,
message
.
content
.
encode
(
'base64'
)
.
rstrip
())
elif
message
.
content_type
.
startswith
(
'text/'
):
content
=
HtmlProcessor
.
autolink
(
message
.
body
if
message
.
content_type
==
'text/html'
else
QTextDocument
(
message
.
body
)
.
toHtml
())
content
=
HtmlProcessor
.
autolink
(
message
.
content
if
message
.
content_type
==
'text/html'
else
QTextDocument
(
message
.
content
)
.
toHtml
())
else
:
return
...
...
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