mirror of https://github.com/vector-im/riot-web
Fix StubRoom for react-sdk tests
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
parent
856e161c8b
commit
f45b1bfdda
|
@ -46,7 +46,6 @@ export default class MessageActionBar extends React.PureComponent {
|
|||
this.props.mxEvent.on("Event.decrypted", this.onDecrypted);
|
||||
const room = MatrixClientPeg.get().getRoom(this.props.mxEvent.getRoomId());
|
||||
if (room) {
|
||||
console.log("DEBUG", room);
|
||||
room.on("RoomMember.powerLevel", this.onPermissionsChange);
|
||||
room.on("RoomMember.membership", this.onPermissionsChange);
|
||||
this.onPermissionsChange();
|
||||
|
|
|
@ -259,6 +259,8 @@ export function mkStubRoom(roomId = null) {
|
|||
},
|
||||
},
|
||||
setBlacklistUnverifiedDevices: sinon.stub(),
|
||||
on: sinon.stub(),
|
||||
removeListener: sinon.stub(),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue