Fix emotes

Fixes #326
This commit is contained in:
Tobias Fella
2021-04-03 01:17:28 +02:00
parent 4e02fa8290
commit c24ab098c6

View File

@@ -327,6 +327,7 @@ void ActionsHandler::postMessage(const QString &text,
if (cleanedText.indexOf(mePrefix) == 0) {
cleanedText = cleanedText.remove(0, mePrefix.length());
messageEventType = RoomMessageEvent::MsgType::Emote;
rawText = rawText.remove(0, mePrefix.length());
} else if (cleanedText.indexOf(noticePrefix) == 0) {
cleanedText = cleanedText.remove(0, noticePrefix.length());
messageEventType = RoomMessageEvent::MsgType::Notice;