Remove console.log from membership

This commit is contained in:
Bad 2020-10-29 10:36:38 +01:00
parent e08b895694
commit 66ecf44048

View file

@ -6,7 +6,7 @@ function createMembershipEvent(membership, message) {
return simpleEvent((e) => e.type == "m.room.member" && e.content.membership === membership, message)
}
const JoinedEvent = createMembershipEvent("join", (e) => {console.log(e); return "joined the room"})
const JoinedEvent = createMembershipEvent("join", (e) => "joined the room")
const InvitedEvent = createMembershipEvent("invite", (e) => `invited ${e.content.displayname} the room`)
const LeaveEvent = createMembershipEvent("leave", () => "left the room")