Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblinphone
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
10
Issues
10
List
Board
Labels
Milestones
Merge Requests
21
Merge Requests
21
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
liblinphone
Commits
10a91108
Commit
10a91108
authored
Oct 08, 2018
by
jehan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update src/chat/modifier/cpim-chat-message-modifier.cpp
parent
d7fb7027
Pipeline
#404
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
cpim-chat-message-modifier.cpp
src/chat/modifier/cpim-chat-message-modifier.cpp
+5
-5
No files found.
src/chat/modifier/cpim-chat-message-modifier.cpp
View file @
10a91108
...
...
@@ -177,15 +177,15 @@ ChatMessageModifier::Result CpimChatMessageModifier::decode (const shared_ptr<Ch
if
(
dispositionNotificationHeader
)
{
vector
<
string
>
values
=
Utils
::
split
(
dispositionNotificationHeader
->
getValue
(),
", "
);
for
(
const
auto
&
value
:
values
)
{
string
trimedValue
=
Utils
::
trim
(
value
);
//Might be better to have a Disposition-Notification parser from the CPIM paser
if
(
trimedValue
==
"positive-delivery"
)
string
trim
m
edValue
=
Utils
::
trim
(
value
);
//Might be better to have a Disposition-Notification parser from the CPIM paser
if
(
trim
m
edValue
==
"positive-delivery"
)
message
->
getPrivate
()
->
setPositiveDeliveryNotificationRequired
(
true
);
else
if
(
trimedValue
==
"negative-delivery"
)
else
if
(
trim
m
edValue
==
"negative-delivery"
)
message
->
getPrivate
()
->
setNegativeDeliveryNotificationRequired
(
true
);
else
if
(
trimedValue
==
"display"
)
else
if
(
trim
m
edValue
==
"display"
)
message
->
getPrivate
()
->
setDisplayNotificationRequired
(
true
);
else
lError
()
<<
"U
known Disposition-Notification value ["
<<
tri
medValue
<<
"]"
;
lError
()
<<
"U
nknown Disposition-Notification value ["
<<
trim
medValue
<<
"]"
;
}
}
}
...
...
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