Fix image delegate color && fix lastEvent.
This commit is contained in:
@@ -83,6 +83,7 @@ void MatriqueRoom::sendTypingNotification(bool isTyping) {
|
||||
QString MatriqueRoom::lastEvent() {
|
||||
if (timelineSize() == 0) return "";
|
||||
const RoomEvent* lastEvent = messageEvents().rbegin()->get();
|
||||
if (lastEvent->contentJson().value("body").toString() == "") return "";
|
||||
return user(lastEvent->senderId())->displayname() + ": " +
|
||||
lastEvent->contentJson().value("body").toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user