add update conversation unread count
This commit is contained in:
parent
cbba9bdeb3
commit
5e5654f513
|
@ -603,7 +603,7 @@ notification:
|
||||||
#####################conversation#########################
|
#####################conversation#########################
|
||||||
conversationOptUpdate:
|
conversationOptUpdate:
|
||||||
conversation:
|
conversation:
|
||||||
reliabilityLevel: 2
|
reliabilityLevel: 1
|
||||||
unreadCount: false
|
unreadCount: false
|
||||||
offlinePush:
|
offlinePush:
|
||||||
switch: true
|
switch: true
|
||||||
|
|
|
@ -70,6 +70,9 @@ func (rpc *rpcConversation) ModifyConversationField(c context.Context, req *pbCo
|
||||||
err = imdb.UpdateColumnsConversations(haveUserID, req.Conversation.ConversationID, map[string]interface{}{"ex": conversation.Ex})
|
err = imdb.UpdateColumnsConversations(haveUserID, req.Conversation.ConversationID, map[string]interface{}{"ex": conversation.Ex})
|
||||||
case constant.FieldAttachedInfo:
|
case constant.FieldAttachedInfo:
|
||||||
err = imdb.UpdateColumnsConversations(haveUserID, req.Conversation.ConversationID, map[string]interface{}{"attached_info": conversation.AttachedInfo})
|
err = imdb.UpdateColumnsConversations(haveUserID, req.Conversation.ConversationID, map[string]interface{}{"attached_info": conversation.AttachedInfo})
|
||||||
|
case constant.FieldUnread:
|
||||||
|
err = imdb.UpdateColumnsConversations(haveUserID, req.Conversation.ConversationID, map[string]interface{}{"unread_count": conversation.UnreadCount})
|
||||||
|
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError(req.OperationID, utils.GetSelfFuncName(), "UpdateColumnsConversations error", err.Error())
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), "UpdateColumnsConversations error", err.Error())
|
||||||
|
|
|
@ -217,6 +217,7 @@ const (
|
||||||
FieldGroupAtType = 5
|
FieldGroupAtType = 5
|
||||||
FieldIsNotInGroup = 6
|
FieldIsNotInGroup = 6
|
||||||
FieldEx = 7
|
FieldEx = 7
|
||||||
|
FieldUnread = 8
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
Loading…
Reference in New Issue