Page MenuHomePhabricator

[lib] Prevent spoiler text from appearing in notifications
ClosedPublic

Authored by rohan on Dec 1 2022, 1:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 26, 10:52 AM
Unknown Object (File)
Sat, Nov 9, 11:50 AM
Unknown Object (File)
Sat, Nov 9, 11:50 AM
Unknown Object (File)
Sat, Nov 9, 11:49 AM
Unknown Object (File)
Thu, Nov 7, 7:22 PM
Unknown Object (File)
Tue, Nov 5, 2:08 AM
Unknown Object (File)
Oct 7 2024, 12:10 PM
Unknown Object (File)
Oct 4 2024, 8:40 AM
Subscribers

Details

Summary

We want to hide spoilers from notifications on both iOS and Android. The context / discussion is on the Linear task:
https://linear.app/comm/issue/ENG-2056/prevent-spoiler-text-from-appearing-in-notifications-[native]

Test Plan

Testing for both iOS and Android will be included once I can link screenshots here.

  1. This is a default message

iOS

[B][iOS] Default.png (2×1 px, 3 MB)

[A][iOS] Default.png (2×1 px, 3 MB)

Android
[B][Android] Default.png (1×1 px, 483 KB)

[A][Android] Default.png (1×1 px, 483 KB)

  1. This is a text with ||spoilers||

iOS

[B][iOS] One Spoiler.png (2×1 px, 3 MB)

[A][iOS] One Spoiler.png (2×1 px, 3 MB)

Android
[B][Android] One Spoiler.png (1×1 px, 484 KB)

[A][Android] One Spoiler.png (1×1 px, 483 KB)

  1. ||One|| and ||Two|| and Three

iOS

[B][iOS] Multiple Spoilers.png (2×1 px, 3 MB)

[A][iOS] Multiple Spoilers.png (2×1 px, 3 MB)

Android
[B][Android] Multiple Spoilers.png (1×1 px, 483 KB)

[A][Android] Multiple Spoilers.png (1×1 px, 481 KB)

  1. ||Bold Text||

iOS

[B][iOS] Bold Spoiler.png (2×1 px, 3 MB)

[A][iOS] Bold Spoiler.png (2×1 px, 3 MB)

Android
[B][Android] Bold Spoiler.png (1×1 px, 482 KB)

[A][Android] Bold Spoilers.png (1×1 px, 478 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

rohan requested review of this revision.Dec 1 2022, 1:41 PM
ashoat removed 1 blocking reviewer(s): atul.
This revision is now accepted and ready to land.Dec 1 2022, 2:51 PM