Compare commits

..

No commits in common. "85269ea1530a0cc8af0e0ccd0c9507ff6ff31b7c" and "c6708d4dbda2137a1c8358dee2a2eadecc43efb5" have entirely different histories.

3 changed files with 5 additions and 10 deletions

View file

@ -232,7 +232,7 @@ async function syncSpaceExpressions(data, checkBeforeSync) {
}
if (isDeepStrictEqual(existing, content)) return
}
await api.sendState(spaceID, "im.ponies.room_emotes", eventKey, content)
api.sendState(spaceID, "im.ponies.room_emotes", eventKey, content)
}
await update(spaceID, "emojis", "moe.cadence.ooye.pack.emojis", expression.emojisToState)

View file

@ -48,7 +48,7 @@ async function sendMessage(message, channel, guild, row) {
const eventIDs = []
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).catch(() => {})
if (senderMxid) api.sendTyping(roomID, false, senderMxid)
}
for (const event of events) {
const part = event === events[0] ? 0 : 1

View file

@ -51,14 +51,9 @@ const utils = {
}
if (listen === "full") {
try {
await eventDispatcher.checkMissedExpressions(message.d)
await eventDispatcher.checkMissedPins(client, message.d)
await eventDispatcher.checkMissedMessages(client, message.d)
} catch (e) {
console.error("Failed to sync missed events. To retry, please fix this error and restart OOYE:")
console.error(e)
}
eventDispatcher.checkMissedExpressions(message.d)
eventDispatcher.checkMissedPins(client, message.d)
eventDispatcher.checkMissedMessages(client, message.d)
}
} else if (message.t === "GUILD_UPDATE") {