Page MenuHomePhabricator

Disable reporting own messages
ClosedPublic

Authored by inka on Oct 3 2022, 3:40 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 24, 12:25 PM
Unknown Object (File)
Sat, Nov 9, 7:54 PM
Unknown Object (File)
Sat, Nov 9, 7:35 PM
Unknown Object (File)
Sat, Nov 9, 4:40 PM
Unknown Object (File)
Sat, Nov 9, 10:29 AM
Unknown Object (File)
Sat, Nov 2, 5:26 PM
Unknown Object (File)
Oct 10 2024, 4:47 PM
Unknown Object (File)
Oct 10 2024, 4:45 PM

Details

Summary

Related: ENG-1915, D5109,
We don't want users to see 'Report' option in tooltip for their own messages

Test Plan

See that pressing a text message/long pressing a multimedia message that the user sent shows a tooltip without the 'Report' option, but doing the same to a message sent by a different user shows a
toolitp that includes this option.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

inka added a reviewer: abosh.
inka requested review of this revision.Oct 3 2022, 3:50 AM
tomek requested changes to this revision.Oct 3 2022, 5:15 AM

Does the order of elements in actions array makes a difference? If that's the case, we should keep the order.

This revision now requires changes to proceed.Oct 3 2022, 5:15 AM

@tomek the order doesn't matter. We pass to tooltip visibleEntryIDs and tooltipSpec and it displays entries obtained from tooltipSpec.entries.filter(entry => visibleSet.has(entry.id)); so they will always be in the order specified in tooltipSpec.

In D5282#155706, @inka wrote:

@tomek the order doesn't matter. We pass to tooltip visibleEntryIDs and tooltipSpec and it displays entries obtained from tooltipSpec.entries.filter(entry => visibleSet.has(entry.id)); so they will always be in the order specified in tooltipSpec.

Thanks for explaining!

As a side note, please request review when answering questions without putting up a new revision. Otherwise the diff doesn't appear in my queue.

This revision is now accepted and ready to land.Oct 3 2022, 6:55 AM

I see, thank you for bringing this to my attention!

This revision was automatically updated to reflect the committed changes.