dendrite/clientapi/routing
Sam Wedgwood c7193e24d0
Use *spec.SenderID for QuerySenderIDForUser (#3164)
There are cases where a dendrite instance is unaware of a pseudo ID for
a user, the user is not a member of that room. To represent this case,
we currently use the 'zero' value, which is often not checked and so
causes errors later down the line. To make this case more explict, and
to be consistent with `QueryUserIDForSender`, this PR changes this to
use a pointer (and `nil` to mean no sender ID).

Signed-off-by: `Sam Wedgwood <sam@wedgwood.dev>`
2023-08-02 11:12:14 +01:00
..
account_data.go Cleanup remaining statekey usage for senderIDs (#3106) 2023-06-12 11:19:25 +00:00
admin_whois.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
admin.go feat: admin APIs for token authenticated registration (#3101) 2023-06-22 16:37:21 +00:00
aliases.go Cleanup remaining statekey usage for senderIDs (#3106) 2023-06-12 11:19:25 +00:00
auth_fallback_test.go Remove BaseDendrite (#3023) 2023-03-22 09:21:32 +01:00
auth_fallback.go Add clientapi tests (#2916) 2022-12-23 14:11:11 +01:00
capabilities.go Use IRoomVersion (#3064) 2023-04-24 11:50:37 +01:00
createroom.go Cleanup remaining statekey usage for senderIDs (#3106) 2023-06-12 11:19:25 +00:00
deactivate.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
device.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
directory_public_test.go refactor: use latest GMSL which splits fed client from matrix room logic (#3051) 2023-04-06 09:55:01 +01:00
directory_public.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
directory.go Use *spec.SenderID for QuerySenderIDForUser (#3164) 2023-08-02 11:12:14 +01:00
joined_rooms.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
joinroom_test.go de-MSC-ifying space summaries (MSC2946) (#3134) 2023-07-20 15:06:05 +01:00
joinroom.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
key_backup.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
key_crosssigning.go Move json errors over to gmsl (#3080) 2023-05-09 22:46:49 +00:00
keys.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
leaveroom.go Cleanup remaining statekey usage for senderIDs (#3106) 2023-06-12 11:19:25 +00:00
login_test.go de-MSC-ifying space summaries (MSC2946) (#3134) 2023-07-20 15:06:05 +01:00
login.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
logout.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
membership.go Use *spec.SenderID for QuerySenderIDForUser (#3164) 2023-08-02 11:12:14 +01:00
notification.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
openid.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
password.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
peekroom.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
presence.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
profile.go Use *spec.SenderID for QuerySenderIDForUser (#3164) 2023-08-02 11:12:14 +01:00
pusher.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
pushrules.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
receipt.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
redaction.go Use *spec.SenderID for QuerySenderIDForUser (#3164) 2023-08-02 11:12:14 +01:00
register_secret_test.go Handle DisplayName field in admin user registration endpoint (#2935) 2023-01-10 18:09:25 +00:00
register_secret.go Handle DisplayName field in admin user registration endpoint (#2935) 2023-01-10 18:09:25 +00:00
register_test.go de-MSC-ifying space summaries (MSC2946) (#3134) 2023-07-20 15:06:05 +01:00
register.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
room_hierarchy.go de-MSC-ifying space summaries (MSC2946) (#3134) 2023-07-20 15:06:05 +01:00
room_tagging.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
routing.go de-MSC-ifying space summaries (MSC2946) (#3134) 2023-07-20 15:06:05 +01:00
sendevent.go Use *spec.SenderID for QuerySenderIDForUser (#3164) 2023-08-02 11:12:14 +01:00
sendtodevice.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
sendtyping.go Cleanup remaining statekey usage for senderIDs (#3106) 2023-06-12 11:19:25 +00:00
server_notices_test.go Implement server notices (#2180) 2022-02-18 16:05:03 +01:00
server_notices.go Add MXIDMapping for pseudoID rooms (#3112) 2023-06-28 20:29:49 +02:00
state.go Merge SenderID & Per Room User Key work (#3109) 2023-06-14 14:23:46 +00:00
thirdparty.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
threepid.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
upgrade_room.go Cleanup remaining statekey usage for senderIDs (#3106) 2023-06-12 11:19:25 +00:00
userdirectory.go Move fedclient interface over to gmsl (#3061) 2023-04-24 16:23:25 +00:00
voip.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
whoami.go Update /whoami response to match Spec v1.2 (#2201) 2022-02-18 11:28:02 +00:00