Merge pull request #2988 from matrix-org/bwindels/donteditimages
Message editing: only allow editing of text messages
This commit is contained in:
commit
4bfa385b2e
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue