d->m typing notifications

This commit is contained in:
Cadence Ember 2023-09-17 23:07:33 +12:00
parent 7e3175eb20
commit cab96cbc9e
4 changed files with 33 additions and 0 deletions

View file

@ -34,6 +34,7 @@ async function sendMessage(message, guild) {
let eventPart = 0 // 0 is primary, 1 is supporting
if (events.length) {
db.prepare("REPLACE INTO message_channel (message_id, channel_id) VALUES (?, ?)").run(message.id, message.channel_id)
if (senderMxid) api.sendTyping(roomID, false, senderMxid)
}
for (const event of events) {
const eventType = event.$type