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

This commit is contained in:
Alex Gleason 2022-01-04 20:27:58 -06:00
parent db40750ea6
commit dc49ef9999
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 2 additions and 2 deletions

View File

@ -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 {
);
}
}
}