aa
This commit is contained in:
@@ -284,7 +284,7 @@ func GetMessageGroupByUser(ctx *jxcontext.Context, userID string) (messageGroupR
|
|||||||
}
|
}
|
||||||
//该用户各组的未读消息数
|
//该用户各组的未读消息数
|
||||||
var unReadCount int
|
var unReadCount int
|
||||||
if messageGroupReads, err := dao.GetMessageGroupRead(db, v.UserID, v.GroupID); err == nil && len(messageGroupReads) > 0 {
|
if messageGroupReads, err := dao.GetMessageGroupRead(db, userID, v.GroupID); err == nil && len(messageGroupReads) > 0 {
|
||||||
for _, vv := range messageGroupReads {
|
for _, vv := range messageGroupReads {
|
||||||
unReadCount += vv.UnReadCount
|
unReadCount += vv.UnReadCount
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user