Commit Graph

94 Commits

Author SHA1 Message Date
Cadence Ember c8b20719db Move poll-star-avatar file endpoint 2026-02-11 02:57:45 +13:00
Cadence Ember dbfa9d0f2b Sync PK member profile on first message
First time a PK member sends a message in the channel, Discord sends a
MESSAGE_UPDATE with the proper avatar data for them. OOYE's speedbump
means sending this message will actually take the edit message path.
The edit message path previously did not force a profile sync. This is
why the Matrix profile did always show up after their second message,
because that message was not updated and took the send path.
2026-02-10 16:42:02 +13:00
Cadence Ember b463e1173b 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.
2026-02-05 01:00:06 +13:00
Ellie Algase 564d564490 Add command to see Matrix results mid-poll
Co-authored-by: Cadence Ember <cadence@disroot.org>
2026-02-05 00:59:36 +13:00
Ellie Algase 52d9c6fea8 Fix poll results being double-bridged
Oddly, this would only occur for the first poll in a channel.
2026-02-04 13:02:43 +13:00
Cadence Ember f5d50fc14e Properly stop PluralKit users typing after sending 2026-02-04 00:59:23 +13:00
Cadence Ember b16d731ddb Better emoji pack names 2026-02-03 01:02:57 +13:00
Cadence Ember fca4c75522 Fix speedbump+retrigger interactions
Send and then edit over speedbump should now just post the edit.

Hopefully this doesn't have any negative consequences.
2026-01-30 19:21:10 +13:00
Cadence Ember 0c781f9b72 Fixes to vote counting 2026-01-26 20:51:30 +13:00
Cadence Ember f3ae7ba792 Rename poll files a bit better 2026-01-26 02:35:58 +13:00
Ellie Algase 90606d9176 Add full support for polls, both m2d and d2m.
Mostly works, but a few edge-cases still need to be worked out.

Co-authored-by: Cadence Ember <cadence@disroot.org>
2026-01-26 02:30:05 +13:00
Ellie Algase afca4de6b6 Bridge polls from Matrix as pseudo-polls on Discord (with an embed). Not 100% working.
Co-authored-by: Cadence Ember <cloudrac3r@vivaldi.net>
2026-01-26 02:29:59 +13:00
Ellie Algase e565342ac8 initial polls support (not exactly working) 2026-01-25 14:33:09 +13:00
Cadence Ember 2496f4c3b0 Fix retrying own events as non-moderator 2026-01-25 13:50:16 +13:00
Cadence Ember 90fcbd0ddc Update Discord libraries 2026-01-21 14:33:24 +13:00
abdul 1741bc0fa7 Fix webp animated emojis
https://discord.com/developers/docs/reference#image-formatting-cdn-endpoints
> WebP and AVIF formats must be requested as WebP.
2026-01-17 23:06:19 +13:00
Cadence Ember c472388acc Room create event must be included to diff 2026-01-15 14:17:03 +13:00
Cadence Ember fba50e9505 Fix getPermissions misunderstanding @everyone 2026-01-14 15:11:22 +13:00
Cadence Ember c8b0f23db3 Retrigger m->d reactions and removals 2026-01-13 22:57:52 +13:00
Cadence Ember 3d3671e05a skip "cannot invite user that is joined" 2026-01-10 13:19:16 +13:00
Cadence Ember 045fdfdf27 General code coverage 2026-01-09 03:49:32 +13:00
Cadence Ember 4bea696a5a setUserPower should account for room version 12 2026-01-07 15:38:09 +13:00
Cadence Ember 55e0e5dfa1 Room version 12 and room upgrades 2026-01-07 02:43:20 +13:00
Cadence Ember 04d26026f5 Pre-upload icons before diffing 2025-12-16 12:37:43 +13:00
Cadence Ember e4d0838af5 Support creating v12 rooms 2025-12-16 02:15:17 +13:00
Cadence Ember 239568a8e5 Fully remove failed experiment 2025-12-16 00:34:37 +13:00
Cadence Ember c298f78f96 Update global profiles for sims 2025-12-01 16:48:11 +13:00
Cadence Ember 3fc51cef15 Add upgraded_timestamp to historical_channel_room 2025-12-01 16:38:38 +13:00
Cadence Ember 20453aab43 res.json type fixes 2025-12-01 16:03:27 +13:00
Cadence Ember 6d0a98eb49 Fix unbridging procedure 2025-11-28 17:20:44 +13:00
Cadence Ember 42beb6d249 Maybe accept invites more reliably 2025-11-27 21:48:49 +13:00
Cadence Ember a441c476f8 Support multiple versions of rooms 2025-11-26 15:43:48 +13:00
Cadence Ember 0f24994af9 The database works better if you query it. 2025-11-19 16:40:40 +13:00
Cadence Ember edd4f988ec Support persistent Matrix sims for webhooks 2025-11-19 16:37:39 +13:00
Cadence Ember 1338e6ba88 Update discord-markdown 2025-11-15 16:41:02 +13:00
Cadence Ember bc32910cc8 Silence errors if generated embeds can't be sent 2025-11-09 00:24:24 +13:00
Cadence Ember d8e6de62e5 Keep sim_proxy profile data up to date 2025-09-08 16:26:16 +12:00
Cadence Ember 106aea4031 Remove silly stringify 2025-08-13 13:41:50 +12:00
Cadence Ember ca8bbe076c Replace PK multiple attempts with cache lookup 2025-08-13 13:32:26 +12:00
Cadence Ember 67291a3736 Get member data when running backfill 2025-08-05 01:25:09 +12:00
Cadence Ember e306b95764 Add test case for something that was irking me 2025-08-04 23:27:56 +12:00
Cadence Ember baf024af84 Fix invalid power level state changes 2025-06-23 10:09:34 +12:00
Cadence Ember 10a3185823 Give sims enough power to send to read-only rooms 2025-06-22 22:35:33 +12:00
Cadence Ember 65498e6cd1 Don't archive threads that are part of a forum 2025-06-22 19:04:25 +12:00
Cadence Ember 639912fee3 Don't overwrite space parent of self-service rooms 2025-06-22 18:51:24 +12:00
Cadence Ember 50a047249b Check hierarchy instead of m.space.child 2025-06-22 18:38:20 +12:00
Cadence Ember 2c15468c22 Fix m->d then d->m reactions not merging 2025-06-16 22:50:34 +12:00
Cadence Ember ab396bd581 Generate embeds for invites with events 2025-06-08 21:52:28 +12:00
Cadence Ember 8d4d505ab9 d->m: preserve unknown messages when syncing pins 2025-05-29 11:57:34 +12:00
Cadence Ember d326894b8a Fix PK member lookup error messages 2025-04-16 22:44:48 +12:00