mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-04 00:55:59 +08:00
send msg file modify
This commit is contained in:
+3
-3
@@ -115,12 +115,12 @@ func JsonStringToMap(str string) (tempMap map[string]int32) {
|
||||
_ = json.Unmarshal([]byte(str), &tempMap)
|
||||
return tempMap
|
||||
}
|
||||
func GetSwitchFromOptions(Options map[string]int32, key string) (result bool) {
|
||||
if flag, ok := Options[key]; !ok || flag == 1 {
|
||||
func GetSwitchFromOptions(Options map[string]bool, key string) (result bool) {
|
||||
if flag, ok := Options[key]; !ok || flag {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
func SetSwitchFromOptions(Options map[string]int32, key string, value int32) {
|
||||
func SetSwitchFromOptions(Options map[string]bool, key string, value bool) {
|
||||
Options[key] = value
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user