Fix emote events (/me) display name display
This commit is contained in:
parent
5dca7d0a35
commit
b12e38f41b
|
@ -347,8 +347,7 @@ Rectangle {
|
|||
}
|
||||
|
||||
function renderEventAsOneLine(event) {
|
||||
return (
|
||||
event.event_type !== "RoomMessageEmote" &&
|
||||
return event.event_type === "RoomMessageEmote" || (
|
||||
! event.event_type.startsWith("RoomMessage") &&
|
||||
! event.event_type.startsWith("RoomEncrypted")
|
||||
)
|
||||
|
|
|
@ -207,7 +207,7 @@ QtObject {
|
|||
|
||||
if (type === "RoomMessageEmote")
|
||||
return ev.content.match(/^\s*<(p|h[1-6])>/) ?
|
||||
ev.content.replace(/(^\s*<(p|h[1-6])>)/, `$1 ${sender} `) :
|
||||
ev.content.replace(/(^\s*<(p|h[1-6])>)/, `$1${sender} `) :
|
||||
sender + " " + ev.content
|
||||
|
||||
if (type.startsWith("RoomMessage") && ! unknownMsg)
|
||||
|
|
Loading…
Reference in New Issue
Block a user