Page MenuHomePhabricator

Disable reporting own messages
ClosedPublic

Authored by inka on Oct 3 2022, 3:40 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 26, 4:48 PM
Unknown Object (File)
Mon, Nov 25, 10:29 PM
Unknown Object (File)
Mon, Nov 25, 7:25 PM
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

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
Branch
inka/disable_reporting_own_mess
Lint
No Lint Coverage
Unit
No Test Coverage

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.