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 forwarding static locations (#8553)
* enable forwarding for location events Signed-off-by: Kerry Archibald <kerrya@element.io> * allow forwarding of static locations Signed-off-by: Kerry Archibald <kerrya@element.io> * add comment Signed-off-by: Kerry Archibald <kerrya@element.io>
This commit is contained in:
@ -315,11 +315,11 @@ describe('EventUtils', () => {
|
||||
});
|
||||
|
||||
describe('canForward()', () => {
|
||||
it('returns false for a location event', () => {
|
||||
it('returns true for a location event', () => {
|
||||
const event = new MatrixEvent({
|
||||
type: M_LOCATION.name,
|
||||
});
|
||||
expect(canForward(event)).toBe(false);
|
||||
expect(canForward(event)).toBe(true);
|
||||
});
|
||||
it('returns false for a poll event', () => {
|
||||
const event = makePollStartEvent('Who?', userId);
|
||||
|
Reference in New Issue
Block a user