diff --git a/src/bot.ts b/src/bot.ts index 045f1cfbb509b15afe77508dde980822884cc86d..26acfac78a91b7fbc8fc2df9692f8af9b8a08244 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -197,9 +197,7 @@ export class DiscordBot { if (result.botUser) { // We are doing this through webhooks so fetch the user profile. profile = await mxClient.getStateEvent(event.room_id, "m.room.member", event.sender); - if (profile !== null) { - profile = profile.content; - } else { + if (profile === null) { log.warn("DiscordBot", `User ${event.sender} has no member state. That's odd.`); } }