Skip to content

Commit ce35f09

Browse files
committed
feat: add incremental synchronization for common conversation attributes.
Signed-off-by: Gordon <[email protected]>
1 parent 73f27ad commit ce35f09

File tree

3 files changed

+0
-469
lines changed

3 files changed

+0
-469
lines changed

pkg/db/db_interface/databse.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,18 +111,12 @@ type MessageModel interface {
111111
UpdateMsgSenderFaceURL(ctx context.Context, sendID, faceURL string, sType int) error
112112
// UpdateMsgSenderFaceURLAndSenderNicknameController(ctx context.Context, sendID, faceURL, nickname string, sessionType int) error
113113
UpdateMsgSenderFaceURLAndSenderNickname(ctx context.Context, conversationID, sendID, faceURL, nickname string) error
114-
InitSuperLocalErrChatLog(ctx context.Context, groupID string)
115-
SuperBatchInsertExceptionMsg(ctx context.Context, MessageList []*model_struct.LocalErrChatLog, groupID string) error
116114
GetAbnormalMsgSeq(ctx context.Context) (int64, error)
117115
GetAbnormalMsgSeqList(ctx context.Context) ([]int64, error)
118116
BatchInsertExceptionMsg(ctx context.Context, MessageList []*model_struct.LocalErrChatLog) error
119117
GetConversationAbnormalMsgSeq(ctx context.Context, groupID string) (int64, error)
120118
BatchInsertTempCacheMessageList(ctx context.Context, MessageList []*model_struct.TempCacheLocalChatLog) error
121119
InsertTempCacheMessage(ctx context.Context, Message *model_struct.TempCacheLocalChatLog) error
122-
InitSuperLocalChatLog(ctx context.Context, groupID string)
123-
SuperGroupBatchInsertMessageList(ctx context.Context, MessageList []*model_struct.LocalChatLog, groupID string) error
124-
SuperGroupInsertMessage(ctx context.Context, Message *model_struct.LocalChatLog, groupID string) error
125-
SuperGroupDeleteAllMessage(ctx context.Context, groupID string) error
126120
DeleteConversationAllMessages(ctx context.Context, conversationID string) error
127121
MarkDeleteConversationAllMessages(ctx context.Context, conversationID string) error
128122

@@ -169,7 +163,6 @@ type ConversationModel interface {
169163
SetMultipleConversationRecvMsgOpt(ctx context.Context, conversationIDList []string, opt int) (err error)
170164
GetMultipleConversationDB(ctx context.Context, conversationIDList []string) (result []*model_struct.LocalConversation, err error)
171165
SearchAllMessageByContentType(ctx context.Context, conversationID string, contentType int) ([]*model_struct.LocalChatLog, error)
172-
SuperGroupSearchAllMessageByContentType(ctx context.Context, superGroupID string, contentType int32) ([]*model_struct.LocalChatLog, error)
173166
SearchConversations(ctx context.Context, searchParam string) ([]*model_struct.LocalConversation, error)
174167
}
175168

pkg/db/db_js.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ func NewDataBase(ctx context.Context, loginUserID string, dbDir string, logLevel
6464
LocalUsers: indexdb.NewLocalUsers(),
6565
LocalConversations: indexdb.NewLocalConversations(),
6666
LocalChatLogs: indexdb.NewLocalChatLogs(loginUserID),
67-
LocalSuperGroupChatLogs: indexdb.NewLocalSuperGroupChatLogs(),
6867
LocalSuperGroup: indexdb.NewLocalSuperGroup(),
6968
LocalConversationUnreadMessages: indexdb.NewLocalConversationUnreadMessages(),
7069
LocalGroups: indexdb.NewLocalGroups(),

0 commit comments

Comments
 (0)