dendrite/federationapi
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
..
api de-MSC-ifying space summaries (MSC2946) (#3134) 2023-07-20 15:06:05 +01:00
consumers Avoid panic due to being unable to query the userID 2023-07-14 08:04:25 +02:00
internal Use *spec.SenderID for QuerySenderIDForUser (#3164) 2023-08-02 11:12:14 +01:00
producers refactor: update GMSL (#3058) 2023-04-19 15:50:33 +01:00
queue Use PDU not *Event in HeaderedEvent (#3073) 2023-05-02 15:03:16 +01:00
routing Use *spec.SenderID for QuerySenderIDForUser (#3164) 2023-08-02 11:12:14 +01:00
statistics refactor: update GMSL (#3058) 2023-04-19 15:50:33 +01:00
storage Use pointer when passing the connection manager around (#3152) 2023-07-19 13:37:04 +02:00
types refactor: update GMSL (#3058) 2023-04-19 15:50:33 +01:00
federationapi_keys_test.go Move fedclient interface over to gmsl (#3061) 2023-04-24 16:23:25 +00:00
federationapi_test.go Use *spec.SenderID for QuerySenderIDForUser (#3164) 2023-08-02 11:12:14 +01:00
federationapi.go Use pointer when passing the connection manager around (#3152) 2023-07-19 13:37:04 +02:00