Ignore colon in lastEvent() if it is state event. Fix #137.
This commit is contained in:
parent
4610d61b92
commit
a79893900d
|
@ -110,7 +110,8 @@ QString SpectralRoom::lastEvent() {
|
|||
if (timelineSize() == 0)
|
||||
return "";
|
||||
const RoomEvent* lastEvent = messageEvents().rbegin()->get();
|
||||
return user(lastEvent->senderId())->displayname() + ": " +
|
||||
return user(lastEvent->senderId())->displayname() +
|
||||
(lastEvent->isStateEvent() ? " " : ": ") +
|
||||
utils::removeReply(eventToString(*lastEvent));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue