Merge pull request #2988 from matrix-org/bwindels/donteditimages
Message editing: only allow editing of text messagespull/21833/head
commit
4bfa385b2e
|
@ -47,5 +47,6 @@ export function isContentActionable(mxEvent) {
|
|||
|
||||
export function canEditContent(mxEvent) {
|
||||
return isContentActionable(mxEvent) &&
|
||||
mxEvent.getContent().msgtype === "m.text" &&
|
||||
mxEvent.getSender() === MatrixClientPeg.get().getUserId();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue