-
-
Notifications
You must be signed in to change notification settings - Fork 674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use *spec.SenderID
for QuerySenderIDForUser
#3164
Conversation
- nil means no sender ID found - including bumping GMSL to change some types to reflect this
After running pseudo ID tests, I've found that some tests that were previously passing are now failing - so I will look into these. (I have a feeling that some of these are to do with empty strings being stored in the database, whereas now it's erroring instead of silently passing)
EDIT: will defer these fixes to another PR, and merge this one as it does not affect non-pseudo IDs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aside from linter being unhappy, LGTM.
For more details see matrix-org/dendrite#3164 Signed-off-by: `Sam Wedgwood <[email protected]>`
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #3164 +/- ##
==========================================
- Coverage 64.38% 64.28% -0.11%
==========================================
Files 506 506
Lines 57040 57092 +52
==========================================
- Hits 36725 36700 -25
- Misses 16476 16553 +77
Partials 3839 3839
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
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 (andnil
to mean no sender ID).Signed-off-by:
Sam Wedgwood <[email protected]>
Note this PR depends on matrix-org/gomatrixserverlib#405 being merged first