Skip to content

Commit 2ee7c15

Browse files
committed
feat: remote GetConversationsUnreadCount, ClearConversationsUnreadCount
1 parent 6b7b216 commit 2ee7c15

File tree

4 files changed

+306
-680
lines changed

4 files changed

+306
-680
lines changed

msg/msg.go

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -250,23 +250,3 @@ func (x *DestructMsgsReq) Check() error {
250250
}
251251
return nil
252252
}
253-
254-
func (x *GetConversationsUnreadCountReq) Check() error {
255-
if x.UserID == "" {
256-
return errors.New("userID is empty")
257-
}
258-
if len(x.ConversationIDs) == 0 {
259-
return errors.New("conversationIDs is empty")
260-
}
261-
return nil
262-
}
263-
264-
func (x *ClearConversationsUnreadCountReq) Check() error {
265-
if x.UserID == "" {
266-
return errors.New("userID is empty")
267-
}
268-
if len(x.ConversationIDs) == 0 {
269-
return errors.New("conversationIDs is empty")
270-
}
271-
return nil
272-
}

0 commit comments

Comments
 (0)