Reactions: Don't apply to messages with errors
This commit is contained in:
parent
5e2a1410e7
commit
e8664213d3
1 changed files with 9 additions and 0 deletions
|
@ -3359,6 +3359,15 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
|
|||
return;
|
||||
}
|
||||
|
||||
// We allow you to react to messages with outgoing errors only if it has sent
|
||||
// successfully to at least one person.
|
||||
if (
|
||||
this.hasErrors() &&
|
||||
(this.isIncoming() || this.getMessagePropStatus() !== 'partial-sent')
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
const reactions = this.get('reactions') || [];
|
||||
const messageId = this.idForLogging();
|
||||
const count = reactions.length;
|
||||
|
|
Loading…
Reference in a new issue