You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-07-30 04:23:07 +03:00
Live location sharing: handle encrypted messages in processBeaconEvents (#2327)
* handle encrypted locations Signed-off-by: Kerry Archibald <kerrya@element.io> * fix processBeaconEvents to handle encrypted events Signed-off-by: Kerry Archibald <kerrya@element.io>
This commit is contained in:
@ -1047,7 +1047,7 @@ describe("MatrixClient", function() {
|
||||
expect(roomStateProcessSpy).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it('calls room states processBeaconEvents with m.beacon events', () => {
|
||||
it('calls room states processBeaconEvents with events', () => {
|
||||
const room = new Room(roomId, client, userId);
|
||||
const roomStateProcessSpy = jest.spyOn(room.currentState, 'processBeaconEvents');
|
||||
|
||||
@ -1055,7 +1055,7 @@ describe("MatrixClient", function() {
|
||||
const beaconEvent = makeBeaconEvent(userId);
|
||||
|
||||
client.processBeaconEvents(room, [messageEvent, beaconEvent]);
|
||||
expect(roomStateProcessSpy).toHaveBeenCalledWith([beaconEvent]);
|
||||
expect(roomStateProcessSpy).toHaveBeenCalledWith([messageEvent, beaconEvent], client);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user