mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-18 07:36:00 +01:00
Improve handling of group story replies
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user