You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Enable the message right-click context menu in the browser (#8336)
* Enable the message right-click context menu in the browser Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Move `getSelectedText()` to `strings.ts` Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Move `canCancel()` to `EventUtils.ts` Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
@ -258,3 +258,7 @@ export function editEvent(
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export function canCancel(status: EventStatus): boolean {
|
||||
return status === EventStatus.QUEUED || status === EventStatus.NOT_SENT || status === EventStatus.ENCRYPTING;
|
||||
}
|
||||
|
Reference in New Issue
Block a user