Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
10a91108
Commit
10a91108
authored
Oct 08, 2018
by
jehan
Browse files
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
src/chat/modifier/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
...
@@ -177,15 +177,15 @@ ChatMessageModifier::Result CpimChatMessageModifier::decode (const shared_ptr<Ch
if
(
dispositionNotificationHeader
)
{
if
(
dispositionNotificationHeader
)
{
vector
<
string
>
values
=
Utils
::
split
(
dispositionNotificationHeader
->
getValue
(),
", "
);
vector
<
string
>
values
=
Utils
::
split
(
dispositionNotificationHeader
->
getValue
(),
", "
);
for
(
const
auto
&
value
:
values
)
{
for
(
const
auto
&
value
:
values
)
{
string
trimedValue
=
Utils
::
trim
(
value
);
//Might be better to have a Disposition-Notification parser from the CPIM paser
string
trim
m
edValue
=
Utils
::
trim
(
value
);
//Might be better to have a Disposition-Notification parser from the CPIM paser
if
(
trimedValue
==
"positive-delivery"
)
if
(
trim
m
edValue
==
"positive-delivery"
)
message
->
getPrivate
()
->
setPositiveDeliveryNotificationRequired
(
true
);
message
->
getPrivate
()
->
setPositiveDeliveryNotificationRequired
(
true
);
else
if
(
trimedValue
==
"negative-delivery"
)
else
if
(
trim
m
edValue
==
"negative-delivery"
)
message
->
getPrivate
()
->
setNegativeDeliveryNotificationRequired
(
true
);
message
->
getPrivate
()
->
setNegativeDeliveryNotificationRequired
(
true
);
else
if
(
trimedValue
==
"display"
)
else
if
(
trim
m
edValue
==
"display"
)
message
->
getPrivate
()
->
setDisplayNotificationRequired
(
true
);
message
->
getPrivate
()
->
setDisplayNotificationRequired
(
true
);
else
else
lError
()
<<
"Uknown Disposition-Notification value ["
<<
trimedValue
<<
"]"
;
lError
()
<<
"U
n
known Disposition-Notification value ["
<<
trim
m
edValue
<<
"]"
;
}
}
}
}
}
}
...
...
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