Fix timestamps on some messages loaded from the recent-messages service on startup (#2020)

This commit is contained in:
Daniel
2020-10-03 07:37:07 -04:00
committed by GitHub
parent b67e20d962
commit 58a6983796
7 changed files with 52 additions and 52 deletions
+5 -1
View File
@@ -71,11 +71,15 @@ namespace {
// rebuild the raw irc message so we can convert it back to an ircmessage again!
// this could probably be done in a smarter way
auto s = QString(":tmi.twitch.tv NOTICE %1 :%2")
.arg(channelName)
.arg(noticeMessage);
return Communi::IrcMessage::fromData(s.toUtf8(), nullptr);
auto newMessage = Communi::IrcMessage::fromData(s.toUtf8(), nullptr);
newMessage->setTags(message->tags());
return newMessage;
}
// parseRecentMessages takes a json object and returns a vector of