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

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