mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-18 07:49:01 +08:00
Merge branch 'main' into v2.3.0release
This commit is contained in:
@@ -11,6 +11,7 @@ import (
|
||||
fcm "Open_IM/internal/push/fcm"
|
||||
"Open_IM/internal/push/getui"
|
||||
jpush "Open_IM/internal/push/jpush"
|
||||
"Open_IM/internal/push/mobpush"
|
||||
"Open_IM/pkg/common/config"
|
||||
"Open_IM/pkg/common/constant"
|
||||
"Open_IM/pkg/common/kafka"
|
||||
@@ -45,6 +46,10 @@ func init() {
|
||||
if config.Config.Push.Fcm.Enable {
|
||||
offlinePusher = fcm.NewFcm()
|
||||
}
|
||||
|
||||
if config.Config.Push.Mob.Enable {
|
||||
offlinePusher = mobpush.MobPushClient
|
||||
}
|
||||
}
|
||||
|
||||
func initPrometheus() {
|
||||
|
||||
Reference in New Issue
Block a user