-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Fix 1:1 message to/from in search results #5161
Conversation
@hiqua Can you show some screenshots of the before and after? The change looks pretty simple, I just want to be sure that we get the proper 'Jon to You' kind of text. |
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 good! Thanks for doing this.
I think the test "returns incoming message" could be modified to test this change, but it's not clear to me how exactly. If you have a hint I can easily follow I could try to implement it. Otherwise I'll leave it like this. |
That's a good point. I think it's worth adding a new test that's very similar to the "returns incoming message" test, with two changes:
Let me know if I can answer more questions. |
Thanks for your help! I think I managed to come up with something reasonable, let me know if something is still missing. The test does fail without the changes. I guess you'll squash the commits, so I was not very descriptive with the second one. |
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.
LGTM, other than some small comments in tests.
Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com>
Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com>
@EvanHahn-Signal let me know if I should try to rebase. |
@hiqua No, please don't make any further changes. We've merged this internally, and when we release a beta including these changes, this PR should be automatically set as 'merged.' |
Fixes #5158.
Contributor checklist:
development
branchyarn ready
run passes successfully (more about tests here)Description
See issue.
I don't think that's the proper way to address this issue, but it seems to work in practice. Feel free to close this PR in favor of a better fix.
If I note:
M(e)
G(roup)
O(ther)
I have tested these cases and the header seems correct (message sent from - to):
O - G
O - M
M - G
M - O
M - M (notes to self)