feat(manager/social): chat purge

This commit is contained in:
rhunk
2023-10-15 00:30:31 +02:00
parent a38e96906d
commit c533983fb3
4 changed files with 200 additions and 16 deletions

View File

@ -4,13 +4,15 @@ import java.util.List;
import me.rhunk.snapenhance.bridge.snapclient.types.Message;
interface MessagingBridge {
String getMyUserId();
@nullable Message fetchMessage(String conversationId, String clientMessageId);
@nullable Message fetchMessageByServerId(String conversationId, String serverMessageId);
@nullable List<Message> fetchConversationWithMessagesPaginated(String conversationId, int limit, long beforeMessageId);
@nullable String updateMessage(String conversationId, String clientMessageId, String messageUpdate);
@nullable String updateMessage(String conversationId, long clientMessageId, String messageUpdate);
@nullable String getOneToOneConversationId(String userId);
}