New getRecentStoryReplies function to clean up replies in multiple convos
This commit is contained in:
@@ -36,6 +36,7 @@ import type {
|
||||
ClientSearchResultMessageType,
|
||||
ConversationType,
|
||||
GetConversationRangeCenteredOnMessageResultType,
|
||||
GetRecentStoryRepliesOptionsType,
|
||||
IdentityKeyIdType,
|
||||
IdentityKeyType,
|
||||
StoredIdentityKeyType,
|
||||
@@ -99,6 +100,7 @@ const exclusiveInterface: ClientExclusiveInterface = {
|
||||
|
||||
searchMessages,
|
||||
|
||||
getRecentStoryReplies,
|
||||
getOlderMessagesByConversation,
|
||||
getConversationRangeCenteredOnMessage,
|
||||
getNewerMessagesByConversation,
|
||||
@@ -613,6 +615,15 @@ async function getNewerMessagesByConversation(
|
||||
return handleMessageJSON(messages);
|
||||
}
|
||||
|
||||
async function getRecentStoryReplies(
|
||||
storyId: string,
|
||||
options?: GetRecentStoryRepliesOptionsType
|
||||
): Promise<Array<MessageType>> {
|
||||
const messages = await channels.getRecentStoryReplies(storyId, options);
|
||||
|
||||
return handleMessageJSON(messages);
|
||||
}
|
||||
|
||||
async function getOlderMessagesByConversation(
|
||||
options: AdjacentMessagesByConversationOptionsType
|
||||
): Promise<Array<MessageType>> {
|
||||
|
Reference in New Issue
Block a user