Fix avatar size for one line events like m.emote

This commit is contained in:
miruka 2020-03-23 16:10:13 -04:00
parent 6f1d7ece54
commit 469992b650

View File

@ -27,14 +27,7 @@ HColumnLayout {
property bool talkBreak: eventList.canTalkBreak(previousModel, model)
property bool dayBreak: eventList.canDayBreak(previousModel, model)
readonly property bool smallAvatar:
compact || (
eventList.canCombine(model, nextModel) &&
(model.event_type === "RoomMessageEmote" ||
! (model.event_type.startsWith("RoomMessage") ||
model.event_type.startsWith("RoomEncrypted")))
)
readonly property bool smallAvatar: compact
readonly property bool collapseAvatar: combine
readonly property bool hideAvatar: onRight