Skip to content
Snippets Groups Projects
Commit 172d6ee2 authored by Emmanuel Lepage Vallee's avatar Emmanuel Lepage Vallee Committed by Edric Milaret
Browse files

im: Fix messages cropping

Refs #77651

Change-Id: I63be6d1efa03c4ddd8a5dd55755b2137415fbd4e
parent 492d8ed8
No related branches found
No related tags found
No related merge requests found
......@@ -121,7 +121,7 @@ std::vector<std::string> InstantMessaging::split_message(std::string text)
size_t len = MAXIMUM_MESSAGE_LENGTH;
while (text.length() > len - 2) {
messages.push_back(text.substr(len - 2) + "\n\n");
messages.push_back(text.substr(0, len - 2) + "\n\0");
text = text.substr(len - 2);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment