From 2b537f42f0ddc3c6f07f5d4c72f10bcdbe65e774 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Sun, 24 Sep 2023 00:13:38 +1200 Subject: [PATCH] Fix uk.half-shot.bridge test data --- d2m/actions/create-room.js | 2 +- test/data.js | 19 ++++++++++++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/d2m/actions/create-room.js b/d2m/actions/create-room.js index 671940f1..58488e79 100644 --- a/d2m/actions/create-room.js +++ b/d2m/actions/create-room.js @@ -122,7 +122,7 @@ async function channelToKState(channel, guild) { network: { id: guild.id, displayname: guild.name, - avatar_url: file.DISCORD_IMAGES_BASE + file.guildIcon(guild) + avatar_url: await file.uploadDiscordFileToMxc(file.guildIcon(guild)) }, channel: { id: channel.id, diff --git a/test/data.js b/test/data.js index d6e10ef8..a0e59d36 100644 --- a/test/data.js +++ b/test/data.js @@ -46,7 +46,24 @@ module.exports = { "m.room.avatar": 0 } }, - "chat.schildi.hide_ui/read_receipts": {hidden: true} + "chat.schildi.hide_ui/read_receipts": {hidden: true}, + "uk.half-shot.bridge/moe.cadence.ooye://discord/112760669178241024/112760669178241024": { + bridgebot: "@_ooye_bot:cadence.moe", + protocol: { + id: "discord", + displayname: "Discord" + }, + network: { + id: "112760669178241024", + displayname: "Psychonauts 3", + avatar_url: "mxc://cadence.moe/zKXGZhmImMHuGQZWJEFKJbsF" + }, + channel: { + id: "112760669178241024", + displayname: "collective-unconscious", + external_url: "https://discord.com/channels/112760669178241024/112760669178241024" + } + } } }, guild: {