Show group replies icon for stories with replies

This commit is contained in:
Josh Perez 2022-10-22 02:26:16 -04:00 committed by GitHub
parent ba55285c74
commit 471a9e2e98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 170 additions and 136 deletions

View file

@ -256,7 +256,9 @@ const dataInterface: ClientInterface = {
getNextTapToViewMessageTimestampToAgeOut,
getTapToViewMessagesNeedingErase,
getOlderMessagesByConversation,
getOlderStories,
getAllStories,
hasStoryReplies,
hasStoryRepliesFromSelf,
getNewerMessagesByConversation,
getMessageMetricsForConversation,
getConversationRangeCenteredOnMessage,
@ -1349,14 +1351,20 @@ async function getOlderMessagesByConversation(
return handleMessageJSON(messages);
}
async function getOlderStories(options: {
async function getAllStories(options: {
conversationId?: string;
limit?: number;
receivedAt?: number;
sentAt?: number;
sourceUuid?: UUIDStringType;
}): Promise<Array<MessageType>> {
return channels.getOlderStories(options);
return channels.getAllStories(options);
}
async function hasStoryReplies(storyId: string): Promise<boolean> {
return channels.hasStoryReplies(storyId);
}
async function hasStoryRepliesFromSelf(storyId: string): Promise<boolean> {
return channels.hasStoryRepliesFromSelf(storyId);
}
async function getNewerMessagesByConversation(