Event/RoomDelegate: consider RoomEncrypted- events
This commit is contained in:
parent
2d682516e8
commit
6586403985
|
@ -37,14 +37,18 @@ Column {
|
||||||
readonly property bool smallAvatar:
|
readonly property bool smallAvatar:
|
||||||
eventList.canCombine(model, nextItem) &&
|
eventList.canCombine(model, nextItem) &&
|
||||||
(model.event_type === "RoomMessageEmote" ||
|
(model.event_type === "RoomMessageEmote" ||
|
||||||
! model.event_type.startsWith("RoomMessage"))
|
! (model.event_type.startsWith("RoomMessage") ||
|
||||||
|
model.event_type.startsWith("RoomEncrypted")))
|
||||||
|
|
||||||
readonly property bool collapseAvatar: combine
|
readonly property bool collapseAvatar: combine
|
||||||
readonly property bool hideAvatar: onRight
|
readonly property bool hideAvatar: onRight
|
||||||
|
|
||||||
readonly property bool hideNameLine:
|
readonly property bool hideNameLine:
|
||||||
model.event_type === "RoomMessageEmote" ||
|
model.event_type === "RoomMessageEmote" ||
|
||||||
! model.event_type.startsWith("RoomMessage") ||
|
! (
|
||||||
|
model.event_type.startsWith("RoomMessage") ||
|
||||||
|
model.event_type.startsWith("RoomEncrypted")
|
||||||
|
) ||
|
||||||
onRight ||
|
onRight ||
|
||||||
combine
|
combine
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,8 @@ HTileDelegate {
|
||||||
|
|
||||||
// If it's an emote or non-message/media event
|
// If it's an emote or non-message/media event
|
||||||
if (ev.event_type === "RoomMessageEmote" ||
|
if (ev.event_type === "RoomMessageEmote" ||
|
||||||
! ev.event_type.startsWith("RoomMessage")) {
|
(! ev.event_type.startsWith("RoomMessage") &&
|
||||||
|
! ev.event_type.startsWith("RoomEncrypted"))) {
|
||||||
return Utils.processedEventText(ev)
|
return Utils.processedEventText(ev)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user