d->m fix replying to matrix user in thread
This commit is contained in:
parent
93fa5b2e9a
commit
61ac535995
5 changed files with 136 additions and 3 deletions
86
test/data.js
86
test/data.js
|
@ -939,6 +939,92 @@ module.exports = {
|
|||
attachments: [],
|
||||
guild_id: "112760669178241024"
|
||||
},
|
||||
simple_reply_to_reply_in_thread: {
|
||||
type: 19,
|
||||
tts: false,
|
||||
timestamp: "2023-10-12T12:35:12.721000+00:00",
|
||||
referenced_message: {
|
||||
webhook_id: "1142275246532083723",
|
||||
type: 0,
|
||||
tts: false,
|
||||
timestamp: "2023-10-12T12:35:06.578000+00:00",
|
||||
position: 1,
|
||||
pinned: false,
|
||||
mentions: [
|
||||
{
|
||||
username: "cadence.worm",
|
||||
public_flags: 0,
|
||||
id: "772659086046658620",
|
||||
global_name: "cadence",
|
||||
discriminator: "0",
|
||||
avatar_decoration_data: null,
|
||||
avatar: "4b5c4b28051144e4c111f0113a0f1cf1"
|
||||
}
|
||||
],
|
||||
mention_roles: [],
|
||||
mention_everyone: false,
|
||||
id: "1162005526675193909",
|
||||
flags: 0,
|
||||
embeds: [],
|
||||
edited_timestamp: null,
|
||||
content: "> <:L1:1144820033948762203><:L2:1144820084079087647>https://discord.com/channels/1100319549670301727/1162005314908999790/1162005501782011975 <@772659086046658620>:\n" +
|
||||
"> So what I'm wondering is about replies.\n" +
|
||||
"What about them?",
|
||||
components: [],
|
||||
channel_id: "1162005314908999790",
|
||||
author: {
|
||||
username: "cadence [they]",
|
||||
id: "1142275246532083723",
|
||||
global_name: null,
|
||||
discriminator: "0000",
|
||||
bot: true,
|
||||
avatar: "af0ead3b92cf6e448fdad80b4e7fc9e5"
|
||||
},
|
||||
attachments: [],
|
||||
application_id: "684280192553844747"
|
||||
},
|
||||
position: 2,
|
||||
pinned: false,
|
||||
nonce: "1162005551190638592",
|
||||
message_reference: {
|
||||
message_id: "1162005526675193909",
|
||||
guild_id: "1100319549670301727",
|
||||
channel_id: "1162005314908999790"
|
||||
},
|
||||
mentions: [],
|
||||
mention_roles: [],
|
||||
mention_everyone: false,
|
||||
member: {
|
||||
roles: [],
|
||||
premium_since: null,
|
||||
pending: false,
|
||||
nick: "worm",
|
||||
mute: false,
|
||||
joined_at: "2023-04-25T07:17:03.696000+00:00",
|
||||
flags: 0,
|
||||
deaf: false,
|
||||
communication_disabled_until: null,
|
||||
avatar: null
|
||||
},
|
||||
id: "1162005552440815646",
|
||||
flags: 0,
|
||||
embeds: [],
|
||||
edited_timestamp: null,
|
||||
content: "Well, they don't seem to...",
|
||||
components: [],
|
||||
channel_id: "1162005314908999790",
|
||||
author: {
|
||||
username: "cadence.worm",
|
||||
public_flags: 0,
|
||||
id: "772659086046658620",
|
||||
global_name: "cadence",
|
||||
discriminator: "0",
|
||||
avatar_decoration_data: null,
|
||||
avatar: "4b5c4b28051144e4c111f0113a0f1cf1"
|
||||
},
|
||||
attachments: [],
|
||||
guild_id: "1100319549670301727"
|
||||
},
|
||||
sticker: {
|
||||
id: "1106366167788044450",
|
||||
type: 0,
|
||||
|
|
|
@ -8,6 +8,7 @@ INSERT INTO channel_room (channel_id, room_id, name, nick, thread_parent, custom
|
|||
('497161350934560778', '!CzvdIdUQXgUjDVKxeU:cadence.moe', 'amanda-spam', NULL, NULL, NULL),
|
||||
('160197704226439168', '!hYnGGlPHlbujVVfktC:cadence.moe', 'the-stanley-parable-channel', 'bots', NULL, NULL),
|
||||
('1100319550446252084', '!BnKuBPCvyfOkhcUjEu:cadence.moe', 'worm-farm', NULL, NULL, NULL),
|
||||
('1162005314908999790', '!FuDZhlOAtqswlyxzeR:cadence.moe', 'Hey.', NULL, '1100319550446252084', NULL),
|
||||
('297272183716052993', '!rEOspnYqdOalaIFniV:cadence.moe', 'general', NULL, NULL, NULL),
|
||||
('122155380120748034', '!cqeGDbPiMFAhLsqqqq:cadence.moe', 'cadences-mind', 'coding', NULL, NULL);
|
||||
|
||||
|
@ -36,7 +37,8 @@ INSERT INTO message_channel (message_id, channel_id) VALUES
|
|||
('1144865310588014633', '687028734322147344'),
|
||||
('1145688633186193479', '1100319550446252084'),
|
||||
('1145688633186193480', '1100319550446252084'),
|
||||
('1145688633186193481', '1100319550446252084');
|
||||
('1145688633186193481', '1100319550446252084'),
|
||||
('1162005526675193909', '1162005314908999790');
|
||||
|
||||
INSERT INTO event_message (event_id, event_type, event_subtype, message_id, part, source) VALUES
|
||||
('$X16nfVks1wsrhq4E9SSLiqrf2N8KD0erD0scZG7U5xg', 'm.room.message', 'm.text', '1126786462646550579', 0, 1),
|
||||
|
@ -57,7 +59,8 @@ INSERT INTO event_message (event_id, event_type, event_subtype, message_id, part
|
|||
('$v_Gtr-bzv9IVlSLBO5DstzwmiDd-GSFaNfHX66IupV8', 'm.room.message', 'm.text', '1144874214311067708', 0, 0),
|
||||
('$7LIdiJCEqjcWUrpzWzS8TELOlFfBEe4ytgS7zn2lbSs', 'm.room.message', 'm.text', '1145688633186193479', 0, 0),
|
||||
('$7LIdiJCEqjcWUrpzWzS8TELOlFfBEe4ytgS7zn2lbSt', 'm.room.message', 'm.text', '1145688633186193480', 0, 0),
|
||||
('$7LIdiJCEqjcWUrpzWzS8TELOlFfBEe4ytgS7zn2lbSt', 'm.room.message', 'm.text', '1145688633186193481', 1, 0);
|
||||
('$7LIdiJCEqjcWUrpzWzS8TELOlFfBEe4ytgS7zn2lbSt', 'm.room.message', 'm.text', '1145688633186193481', 1, 0),
|
||||
('$nUM-ABBF8KdnvrhXwLlYAE9dgDl_tskOvvcNIBrtsVo', 'm.room.message', 'm.text', '1162005526675193909', 0, 0);
|
||||
|
||||
INSERT INTO file (discord_url, mxc_url) VALUES
|
||||
('https://cdn.discordapp.com/attachments/497161332244742154/1124628646431297546/image.png', 'mxc://cadence.moe/qXoZktDqNtEGuOCZEADAMvhM'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue