Don't allow pin or edit of messages with a send status (#31158)

* Don't allow pin or edit of messages with a send status

* lint and improve comments.
This commit is contained in:
David Langley
2025-11-03 17:33:18 +00:00
committed by GitHub
parent 18a5565b70
commit dcf3e536ab
4 changed files with 35 additions and 3 deletions
@@ -748,7 +748,8 @@ function createMenu(
// @ts-ignore illegally set private prop
room.currentState.beacons = beacons;
mxEvent.setStatus(EventStatus.SENT);
// The base case is that we have received the remote echo and have an eventId. No sending status.
mxEvent.setStatus(null);
client.getUserId = jest.fn().mockReturnValue("@user:example.com");
client.getRoom = jest.fn().mockReturnValue(room);