Improve handling of group story replies

This commit is contained in:
trevor-signal
2025-12-04 17:06:25 -05:00
committed by GitHub
parent efe2c8de71
commit 465cf7af41
5 changed files with 165 additions and 9 deletions

View File

@@ -4119,6 +4119,23 @@ export class ConversationModel {
expireTimer = this.get('expireTimer');
}
if (storyId && isGroup(this.attributes)) {
const story = await getMessageById(storyId);
strictAssert(story, 'story being replied to must exist');
strictAssert(
story.expireTimer != null && story.expireTimer > 0,
'story missing expireTimer'
);
strictAssert(
story.expirationStartTimestamp != null &&
story.expirationStartTimestamp > 0,
'story missing expirationStartTimestamp'
);
expireTimer = story.expireTimer;
expirationStartTimestamp = story.expirationStartTimestamp;
}
const recipientMaybeConversations = map(
this.getRecipients({
isStoryReply: storyId !== undefined,