From 9c77549d2050de4357811cdcdc2c147371010483 Mon Sep 17 00:00:00 2001 From: eeeeeta <eeeeeta@users.noreply.github.com> Date: Wed, 30 May 2018 19:21:16 +0100 Subject: [PATCH] remove eta-fork-specific stuff --- src/bot.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/bot.ts b/src/bot.ts index 36f766b..545d563 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -579,7 +579,7 @@ export class DiscordBot { info.h = attachment.height; } rooms.forEach((room) => { - let prom = intent.sendMessage(room, { + const prom = intent.sendMessage(room, { body: attachment.filename, info, msgtype, @@ -591,12 +591,7 @@ export class DiscordBot { evt.MatrixId = res.event_id + ";" + room; evt.DiscordId = msg.id; evt.ChannelId = msg.channel.id; - if (msg.guild) { - evt.GuildId = msg.guild.id; - } - else { - evt.GuildId = "dm"; - } + evt.GuildId = msg.guild.id; this.store.Insert(evt); }); }); -- GitLab