Commit 58fc6c6
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.)
- The new-DM sheet, but we'll be excluding muted users, coming up in
a separate commit.
- @-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 00f5130 commit 58fc6c6
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 | |
|---|---|---|---|
| |||
987 | 987 | | |
988 | 988 | | |
989 | 989 | | |
990 | | - | |
991 | | - | |
992 | | - | |
993 | | - | |
994 | 990 | | |
995 | 991 | | |
996 | 992 | | |
997 | 993 | | |
998 | 994 | | |
999 | 995 | | |
1000 | | - | |
| 996 | + | |
1001 | 997 | | |
1002 | 998 | | |
1003 | 999 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1469 | 1469 | | |
1470 | 1470 | | |
1471 | 1471 | | |
1472 | | - | |
1473 | | - | |
1474 | | - | |
1475 | | - | |
1476 | | - | |
1477 | | - | |
1478 | 1472 | | |
1479 | 1473 | | |
1480 | 1474 | | |
1481 | 1475 | | |
1482 | 1476 | | |
1483 | 1477 | | |
1484 | | - | |
| 1478 | + | |
1485 | 1479 | | |
1486 | 1480 | | |
1487 | 1481 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
802 | 802 | | |
803 | 803 | | |
804 | 804 | | |
805 | | - | |
806 | | - | |
807 | | - | |
808 | 805 | | |
809 | 806 | | |
810 | 807 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
802 | 802 | | |
803 | 803 | | |
804 | 804 | | |
805 | | - | |
806 | | - | |
807 | | - | |
808 | 805 | | |
809 | 806 | | |
810 | 807 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
802 | 802 | | |
803 | 803 | | |
804 | 804 | | |
805 | | - | |
806 | | - | |
807 | | - | |
808 | 805 | | |
809 | 806 | | |
810 | 807 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
802 | 802 | | |
803 | 803 | | |
804 | 804 | | |
805 | | - | |
806 | | - | |
807 | | - | |
808 | 805 | | |
809 | 806 | | |
810 | 807 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
802 | 802 | | |
803 | 803 | | |
804 | 804 | | |
805 | | - | |
806 | | - | |
807 | | - | |
808 | 805 | | |
809 | 806 | | |
810 | 807 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
815 | 815 | | |
816 | 816 | | |
817 | 817 | | |
818 | | - | |
819 | | - | |
820 | | - | |
821 | 818 | | |
822 | 819 | | |
823 | 820 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
817 | 817 | | |
818 | 818 | | |
819 | 819 | | |
820 | | - | |
821 | | - | |
822 | | - | |
823 | 820 | | |
824 | 821 | | |
825 | 822 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
804 | 804 | | |
805 | 805 | | |
806 | 806 | | |
807 | | - | |
808 | | - | |
809 | | - | |
810 | 807 | | |
811 | 808 | | |
812 | 809 | | |
| |||
0 commit comments