ReplyMentions: to.length --> to.size, fix bug replying to self

strip-front-mentions
Alex Gleason 2022-01-04 20:27:58 -06:00
rodzic db40750ea6
commit dc49ef9999
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -23,7 +23,7 @@ class ReplyMentions extends ImmutablePureComponent {
render() {
const { explicitAddressing, to, isReply } = this.props;
if (!explicitAddressing || !isReply || !to || to.length === 0) {
if (!explicitAddressing || !isReply || !to || to.size === 0) {
return null;
}
@ -41,4 +41,4 @@ class ReplyMentions extends ImmutablePureComponent {
);
}
}
}