Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linphone
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
7
Issues
7
List
Board
Labels
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
linphone
Commits
b3d1d7f9
Commit
b3d1d7f9
authored
Nov 24, 2017
by
Sylvain Berfini
🎩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not store outgoing IMDNs and IsComposing
parent
beadb7bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
chat-message.cpp
src/chat/chat-message/chat-message.cpp
+10
-1
No files found.
src/chat/chat-message/chat-message.cpp
View file @
b3d1d7f9
...
...
@@ -552,6 +552,13 @@ void ChatMessagePrivate::send () {
}
else
msgOp
->
send_message
(
ContentType
::
PlainText
.
asString
().
c_str
(),
internalContent
.
getBodyAsString
().
c_str
());
bool
messageToBeStored
=
false
;
for
(
Content
*
c
:
contents
)
{
if
(
c
->
getContentType
()
==
ContentType
::
FileTransfer
||
c
->
getContentType
()
==
ContentType
::
PlainText
)
{
messageToBeStored
=
true
;
}
}
for
(
Content
*
content
:
contents
)
{
// Restore FileContents and remove FileTransferContents
if
(
content
->
getContentType
()
==
ContentType
::
FileTransfer
)
{
...
...
@@ -564,7 +571,9 @@ void ChatMessagePrivate::send () {
q
->
setImdnMessageId
(
op
->
get_call_id
());
/* must be known at that time */
store
();
if
(
messageToBeStored
)
{
store
();
}
if
(
call
&&
linphone_call_get_op
(
call
)
==
op
)
{
/* In this case, chat delivery status is not notified, so unrefing chat message right now */
...
...
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