Story send: Send sync message even in partial failure

This commit is contained in:
Scott Nonnenberg 2022-10-14 17:22:04 -07:00 committed by GitHub
parent 2d5c154e2a
commit 0e49f7906d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 84 additions and 30 deletions

View file

@ -156,6 +156,7 @@ export async function sendStoryMessage(
attachments,
conversationId: ourConversation.id,
expireTimer: DAY / SECOND,
expirationStartTimestamp: Date.now(),
id: UUID.generate().toString(),
readStatus: ReadStatus.Read,
received_at: incrementMessageCounter(),
@ -205,7 +206,8 @@ export async function sendStoryMessage(
return;
}
const groupTimestamp = timestamp + index;
// We want all of these timestamps to be different from the My Story timestamp.
const groupTimestamp = timestamp + index + 1;
const myId = window.ConversationController.getOurConversationIdOrThrow();
const sendState = {
@ -236,6 +238,7 @@ export async function sendStoryMessage(
canReplyToStory: true,
conversationId,
expireTimer: DAY / SECOND,
expirationStartTimestamp: Date.now(),
id: UUID.generate().toString(),
readStatus: ReadStatus.Read,
received_at: incrementMessageCounter(),