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
put maySendMessage stub on stubRoom in the right place
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@ -247,12 +247,12 @@ export function mkStubRoom(roomId = null) {
|
|||||||
getVersion: () => '1',
|
getVersion: () => '1',
|
||||||
shouldUpgradeToVersion: () => null,
|
shouldUpgradeToVersion: () => null,
|
||||||
getMyMembership: () => "join",
|
getMyMembership: () => "join",
|
||||||
|
maySendMessage: sinon.stub().returns(true),
|
||||||
currentState: {
|
currentState: {
|
||||||
getStateEvents: sinon.stub(),
|
getStateEvents: sinon.stub(),
|
||||||
mayClientSendStateEvent: sinon.stub().returns(true),
|
mayClientSendStateEvent: sinon.stub().returns(true),
|
||||||
maySendStateEvent: sinon.stub().returns(true),
|
maySendStateEvent: sinon.stub().returns(true),
|
||||||
maySendEvent: sinon.stub().returns(true),
|
maySendEvent: sinon.stub().returns(true),
|
||||||
maySendMessage: sinon.stub().returns(true),
|
|
||||||
members: [],
|
members: [],
|
||||||
},
|
},
|
||||||
tags: {
|
tags: {
|
||||||
|
Reference in New Issue
Block a user