Commit 1107261
muted-users: Say "Muted user" to replace a user's name, where applicable
(Done by adding an is-muted condition in store.userDisplayName and
store.senderDisplayName, with an opt-out param.)
If Chris is muted, we'll now show "Muted user" where before we would
show "Chris Bobbe", in the following places:
- Message-list page:
- DM-narrow app bar.
- DM recipient headers.
- The sender row on messages. This and message content will get
more treatment in a separate commit.
- Emoji-reaction chips on messages.
- Typing indicators ("Muted user is typing…"), but we'll be
excluding muted users, coming up in a separate commit.
- Voter names in poll messages.
- DM items in the Inbox page. (Messages from muted users are
automatically marked as read, but they can end up in the inbox if
you un-mark them as read.)
- @-mention autocomplete, but we'll be excluding muted users, coming
up in a separate commit.
- Items in the Direct messages ("recent DMs") page. We'll be
excluding DMs where everyone is muted, coming up in a separate
commit.
- User items in custom profile fields.
We *don't* do this replacement in the following places, i.e., we'll
still show "Chris Bobbe" if Chris is muted:
- Sender name in the header of the lightbox page. (This follows
web.)
- The "hint text" for the compose box in a DM narrow: it will still
say "Message @chris Bobbe", not "Message @muted user". (This
follows web.)
- The user's name at the top of the Profile page.
- We won't generate malformed @-mention syntax like
@_**Muted user|13313**.
Co-authored-by: Sayed Mahmood Sayedi <[email protected]>1 parent 23413ab commit 1107261
File tree
25 files changed
+242
-71
lines changed- assets/l10n
- lib
- generated/l10n
- model
- widgets
- test
- model
- widgets
25 files changed
+242
-71
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
983 | 983 | | |
984 | 984 | | |
985 | 985 | | |
986 | | - | |
987 | | - | |
988 | | - | |
989 | | - | |
990 | 986 | | |
991 | 987 | | |
992 | 988 | | |
993 | 989 | | |
994 | 990 | | |
995 | 991 | | |
996 | | - | |
| 992 | + | |
997 | 993 | | |
998 | 994 | | |
999 | 995 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1463 | 1463 | | |
1464 | 1464 | | |
1465 | 1465 | | |
1466 | | - | |
1467 | | - | |
1468 | | - | |
1469 | | - | |
1470 | | - | |
1471 | | - | |
1472 | 1466 | | |
1473 | 1467 | | |
1474 | 1468 | | |
1475 | 1469 | | |
1476 | 1470 | | |
1477 | 1471 | | |
1478 | | - | |
| 1472 | + | |
1479 | 1473 | | |
1480 | 1474 | | |
1481 | 1475 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
796 | 796 | | |
797 | 797 | | |
798 | 798 | | |
799 | | - | |
800 | | - | |
801 | | - | |
802 | 799 | | |
803 | 800 | | |
804 | 801 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
796 | 796 | | |
797 | 797 | | |
798 | 798 | | |
799 | | - | |
800 | | - | |
801 | | - | |
802 | 799 | | |
803 | 800 | | |
804 | 801 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
796 | 796 | | |
797 | 797 | | |
798 | 798 | | |
799 | | - | |
800 | | - | |
801 | | - | |
802 | 799 | | |
803 | 800 | | |
804 | 801 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
796 | 796 | | |
797 | 797 | | |
798 | 798 | | |
799 | | - | |
800 | | - | |
801 | | - | |
802 | 799 | | |
803 | 800 | | |
804 | 801 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
796 | 796 | | |
797 | 797 | | |
798 | 798 | | |
799 | | - | |
800 | | - | |
801 | | - | |
802 | 799 | | |
803 | 800 | | |
804 | 801 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
807 | 807 | | |
808 | 808 | | |
809 | 809 | | |
810 | | - | |
811 | | - | |
812 | | - | |
813 | 810 | | |
814 | 811 | | |
815 | 812 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
810 | 810 | | |
811 | 811 | | |
812 | 812 | | |
813 | | - | |
814 | | - | |
815 | | - | |
816 | 813 | | |
817 | 814 | | |
818 | 815 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
798 | 798 | | |
799 | 799 | | |
800 | 800 | | |
801 | | - | |
802 | | - | |
803 | | - | |
804 | 801 | | |
805 | 802 | | |
806 | 803 | | |
| |||
0 commit comments