Commit 172d6ee2 authored by Emmanuel Lepage Vallee's avatar Emmanuel Lepage Vallee Committed by Edric Milaret

im: Fix messages cropping

Refs #77651

Change-Id: I63be6d1efa03c4ddd8a5dd55755b2137415fbd4e
parent 492d8ed8
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment