add Debug

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2019-07-29 12:54:09 +01:00
parent 289ee86a5d
commit 856e161c8b

View file

@ -46,6 +46,7 @@ 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();