fix: Allow device ID to be optional when iterating over /messages #757

Merged
Jade merged 3 commits from nex/fix-appservices-history into main 2025-04-18 13:01:10 +00:00

3 commits

Author SHA1 Message Date
dc599db19c
chore: Change branding string to continuwuity
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Successful in 33s
Documentation / Build and Deploy Documentation (push) Successful in 24s
2025-04-18 14:00:31 +01:00
3a95585f0e
fix: Disambiguate appservices in lazy loading context
In the previous commit, app services would all appear to be the same
device when accessing the same user. This sets the device ID to be the
appservice ID when available to avoid possible clobbering.
2025-04-18 14:00:31 +01:00
68d68a0645
fix: Do not panic when sender_device is None in /messages route
The device ID is not always present when the appservice is the client.
This was causing 500 errors for some users, as appservices can lazy
load from `/messages`.

Fixes #738

Co-authored-by: Jade Ellis <jade@ellis.link>
2025-04-18 14:00:30 +01:00