Fallback text for Matrix poll end events

Right now this doesn't seem to show up on any clients because extensible
events is a total mess, but if you did want to code a client that shows
this fallback without bothering to code real support for polls, you are
easily able to do that. Just pretend the poll end event is a
m.room.message and render it like usual.
This commit is contained in:
Cadence Ember
2026-02-05 01:00:06 +13:00
parent 564d564490
commit b463e1173b
3 changed files with 30 additions and 5 deletions
+2 -1
View File
@@ -113,7 +113,8 @@ async function endPoll(closeMessage) {
return {
username: "Total results including Matrix votes",
avatar_url: `${reg.ooye.bridge_origin}/discord/poll-star-avatar.png`,
content: messageString
content: messageString,
flags: DiscordTypes.MessageFlags.SuppressEmbeds
}
}
}