Story replies: Require referenced story only for groups
This commit is contained in:
parent
29eb07c159
commit
d87684a03c
1 changed files with 7 additions and 18 deletions
|
@ -1963,26 +1963,15 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
|
||||||
return sendState.isAllowedToReplyToStory !== false;
|
return sendState.isAllowedToReplyToStory !== false;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (storyContext && !storyQuote) {
|
if (
|
||||||
if (!isDirectConversation(conversation.attributes)) {
|
storyContext &&
|
||||||
log.warn(
|
!storyQuote &&
|
||||||
`${idLog}: Received ${storyContextLogId} message in group but no matching story. Dropping.`
|
!isDirectConversation(conversation.attributes)
|
||||||
);
|
) {
|
||||||
|
|
||||||
confirm();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (storyQuotes.length === 0) {
|
|
||||||
log.warn(
|
|
||||||
`${idLog}: Received ${storyContextLogId} message but no matching story. We'll try processing this message again later.`
|
|
||||||
);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
log.warn(
|
log.warn(
|
||||||
`${idLog}: Received ${storyContextLogId} message in 1:1 conversation but no matching story. Dropping.`
|
`${idLog}: Received ${storyContextLogId} message in group but no matching story. Dropping.`
|
||||||
);
|
);
|
||||||
|
|
||||||
confirm();
|
confirm();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue