Skip to content
Snippets Groups Projects
Unverified Commit a91dbc4d authored by Sébastien Blin's avatar Sébastien Blin
Browse files

conversationmodel: improve text/plain detection for SIP

Change-Id: I205e94c6e4c3674f1910408fe6367e27617cb69f
parent 6185a10e
Branches
No related tags found
No related merge requests found
...@@ -1598,7 +1598,11 @@ ConversationModelPimpl::slotNewAccountMessage(std::string& accountId, ...@@ -1598,7 +1598,11 @@ ConversationModelPimpl::slotNewAccountMessage(std::string& accountId,
if (accountId != linked.owner.id) if (accountId != linked.owner.id)
return; return;
addIncomingMessage(from, payloads["text/plain"]); for (const auto &payload : payloads) {
if (payload.first.find("text/plain") != std::string::npos) {
addIncomingMessage(from, payload.second);
}
}
} }
void void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment