Merge branch 'modify' of github.com:OpenIMSDK/Open-IM-Server into modify

# Conflicts:
#	pkg/proto/msg/msg.pb.go
This commit is contained in:
wangchuxiao
2022-12-12 19:24:53 +08:00
6 changed files with 550 additions and 290 deletions
+6
View File
@@ -447,6 +447,12 @@ func (d *DataBases) JudgeMessageReactionEXISTS(clientMsgID string, sessionType i
return false, err
}
}
func (d *DataBases) GetOneMessageAllReactionList(clientMsgID string, sessionType int32) (map[string]string, error) {
key := getMessageReactionExPrefix(clientMsgID, sessionType)
return d.RDB.HGetAll(context.Background(), key).Result()
}
func (d *DataBases) SetMessageReactionExpire(clientMsgID string, sessionType int32, expiration time.Duration) (bool, error) {
key := getMessageReactionExPrefix(clientMsgID, sessionType)
return d.RDB.Expire(context.Background(), key, expiration).Result()