Commit 17263ea
muted-users: Use placeholder for avatars of muted users, where applicable
(Done by adding an is-muted condition in Avatar and AvatarImage,
with an opt-out param. Similar to how we handled users' names in a
recent commit.)
If a user is muted, we'll now show a placeholder where before we
would have shown their real avatar, in the following places:
- The sender row on messages in the message list. This and message
content will get more treatment in a separate commit.
- @-mention autocomplete, but we'll be excluding muted users, coming
up in a separate commit.
- User items in custom profile fields.
- 1:1 DM items in the Direct messages ("recent DMs") page. But we'll be
excluding those items there, coming up in a separate commit.
We *don't* do this replacement in the following places, i.e., we'll
still show the real avatar:
- The header of the lightbox page. (This follows web.)
- The big avatar at the top of the profile page.
Co-authored-by: Sayed Mahmood Sayedi <[email protected]>1 parent 04fd796 commit 17263ea
File tree
5 files changed
+89
-8
lines changed- lib/widgets
- test/widgets
5 files changed
+89
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1659 | 1659 | | |
1660 | 1660 | | |
1661 | 1661 | | |
| 1662 | + | |
1662 | 1663 | | |
1663 | 1664 | | |
1664 | 1665 | | |
1665 | 1666 | | |
1666 | 1667 | | |
| 1668 | + | |
1667 | 1669 | | |
1668 | 1670 | | |
1669 | 1671 | | |
1670 | 1672 | | |
1671 | 1673 | | |
1672 | 1674 | | |
1673 | | - | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
1674 | 1679 | | |
1675 | 1680 | | |
1676 | 1681 | | |
| |||
1684 | 1689 | | |
1685 | 1690 | | |
1686 | 1691 | | |
| 1692 | + | |
1687 | 1693 | | |
1688 | 1694 | | |
1689 | 1695 | | |
1690 | 1696 | | |
| 1697 | + | |
1691 | 1698 | | |
1692 | 1699 | | |
1693 | 1700 | | |
| |||
1698 | 1705 | | |
1699 | 1706 | | |
1700 | 1707 | | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
1701 | 1712 | | |
1702 | 1713 | | |
1703 | 1714 | | |
| |||
1718 | 1729 | | |
1719 | 1730 | | |
1720 | 1731 | | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
1721 | 1758 | | |
1722 | 1759 | | |
1723 | 1760 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
199 | 204 | | |
200 | 205 | | |
201 | 206 | | |
202 | 207 | | |
203 | 208 | | |
204 | | - | |
| 209 | + | |
205 | 210 | | |
206 | 211 | | |
207 | 212 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
51 | 55 | | |
52 | | - | |
| 56 | + | |
53 | 57 | | |
54 | 58 | | |
55 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1591 | 1591 | | |
1592 | 1592 | | |
1593 | 1593 | | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
1594 | 1603 | | |
1595 | 1604 | | |
1596 | 1605 | | |
1597 | 1606 | | |
1598 | 1607 | | |
1599 | 1608 | | |
1600 | 1609 | | |
| 1610 | + | |
| 1611 | + | |
1601 | 1612 | | |
1602 | 1613 | | |
1603 | | - | |
| 1614 | + | |
1604 | 1615 | | |
1605 | 1616 | | |
1606 | 1617 | | |
1607 | 1618 | | |
| 1619 | + | |
1608 | 1620 | | |
1609 | 1621 | | |
1610 | 1622 | | |
| 1623 | + | |
1611 | 1624 | | |
1612 | 1625 | | |
1613 | 1626 | | |
| 1627 | + | |
1614 | 1628 | | |
1615 | 1629 | | |
1616 | 1630 | | |
| 1631 | + | |
1617 | 1632 | | |
1618 | 1633 | | |
1619 | 1634 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
246 | 248 | | |
247 | 249 | | |
248 | 250 | | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
249 | 262 | | |
250 | 263 | | |
251 | 264 | | |
252 | 265 | | |
253 | | - | |
254 | | - | |
| 266 | + | |
| 267 | + | |
255 | 268 | | |
256 | 269 | | |
257 | 270 | | |
| |||
261 | 274 | | |
262 | 275 | | |
263 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
264 | 280 | | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
265 | 285 | | |
266 | 286 | | |
267 | 287 | | |
| |||
0 commit comments