You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-31 13:44:28 +03:00
Fix issues around up arrow event edit shortcut (#9645)
This commit is contained in:
committed by
GitHub
parent
09282d9f36
commit
d341c56b1f
@ -34,6 +34,7 @@ import {
|
||||
canEditContent,
|
||||
canEditOwnEvent,
|
||||
fetchInitialEvent,
|
||||
findEditableEvent,
|
||||
isContentActionable,
|
||||
isLocationEvent,
|
||||
isVoiceMessage,
|
||||
@ -430,4 +431,13 @@ describe('EventUtils', () => {
|
||||
expect(room.getThread(THREAD_ROOT)).toBeInstanceOf(Thread);
|
||||
});
|
||||
});
|
||||
|
||||
describe("findEditableEvent", () => {
|
||||
it("should not explode when given empty events array", () => {
|
||||
expect(findEditableEvent({
|
||||
events: [],
|
||||
isForward: true,
|
||||
})).toBeUndefined();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user