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