Changeset View
Changeset View
Standalone View
Standalone View
src/contents/ui/EventView.qml
Show First 20 Lines • Show All 196 Lines • ▼ Show 20 Lines | Item { | ||||
function getMessageType(e) { | function getMessageType(e) { | ||||
if (e.redacted) { | if (e.redacted) { | ||||
return 'redacted'; | return 'redacted'; | ||||
} | } | ||||
if (e.isState) { | if (e.isState) { | ||||
return 'state'; | return 'state'; | ||||
} | } | ||||
// ignore edits of other events | |||||
if (e.relationType === 'm.replace') { | |||||
return 'ignore'; | |||||
} | |||||
switch (e.type) { | switch (e.type) { | ||||
case 'm.room.message': | case 'm.room.message': | ||||
switch (e.content.msgtype) { | switch (e.content.msgtype) { | ||||
case 'm.text': | case 'm.text': | ||||
return 'text'; | return 'text'; | ||||
case 'm.emote': | case 'm.emote': | ||||
return 'emote'; | return 'emote'; | ||||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |