-
Notifications
You must be signed in to change notification settings - Fork 59
Add tests for reading account data #536
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
Conversation
@@ -41,6 +42,42 @@ sub matrix_add_room_account_data | |||
); | |||
} | |||
|
|||
=head2 matrix_get_account_data | |||
|
|||
matrix_get_account_data( $user, $type, $content )->get; |
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.
why does this have a ->get
?
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.
copy/paste. I guess it's not needed?
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.
looks like the other functions here also have it...
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.
Github lost my comment that I noticed that :(
I have no idea what its doing with its life
I guess this needs to wait for matrix-org/synapse#4303 to land? |
yes, and the status of the synapse PR is waiting for the MSC bot to run its course, which it did over the holidays. |
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.
some negative-case tests (eg: what happens if you try to get someone else's account data, or account data that doesn't exist) would be nice, but this is good anyway
See matrix-org/synapse#4303
This was done with a community hat on:
Signed-off-by: Travis Ralston travis@t2bot.io