mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-06 01:55:58 +08:00
conversation update
This commit is contained in:
+1
-1
@@ -116,7 +116,7 @@ func JsonStringToMap(str string) (tempMap map[string]interface{}) {
|
||||
return tempMap
|
||||
}
|
||||
func GetSwitchFromOptions(Options map[string]interface{}, key string) (result bool) {
|
||||
if flag, ok := Options[key]; !ok || flag.(int) == 1 {
|
||||
if flag, ok := Options[key]; !ok || flag.(float64) == 1 {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user