mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-05-12 22:59:03 +08:00
add global msg recv opt
This commit is contained in:
parent
8fe6231ebc
commit
d3279694b7
@ -25,7 +25,7 @@ import (
|
||||
//}
|
||||
func (d *DataBases) SetUserGlobalMsgRecvOpt(userID string, opt int32) error {
|
||||
key := conversationReceiveMessageOpt + userID
|
||||
return d.rdb.HSet(context.Background(), key, map[string]interface{}{GlobalMsgRecvOpt: opt}).Err()
|
||||
return d.rdb.HSet(context.Background(), key, GlobalMsgRecvOpt, opt).Err()
|
||||
}
|
||||
func (d *DataBases) GetUserGlobalMsgRecvOpt(userID string) (int, error) {
|
||||
key := conversationReceiveMessageOpt + userID
|
||||
|
Loading…
x
Reference in New Issue
Block a user