mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-05-09 04:21:08 +08:00
super group add verification
This commit is contained in:
parent
ccf6ef6140
commit
7561831624
@ -23,7 +23,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
FcmClient = newFcmClient()
|
//FcmClient = newFcmClient()
|
||||||
}
|
}
|
||||||
|
|
||||||
func newFcmClient() *Fcm {
|
func newFcmClient() *Fcm {
|
||||||
@ -77,7 +77,7 @@ func (f *Fcm) Push(accounts []string, alert, detailContent, operationID string,
|
|||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
max := (i+1)*limit - 1
|
max := (i+1)*limit - 1
|
||||||
if max >= tokenlen {
|
if max >= tokenlen {
|
||||||
max = tokenlen-1
|
max = tokenlen - 1
|
||||||
}
|
}
|
||||||
Msg.Tokens = Tokens[i*limit : max]
|
Msg.Tokens = Tokens[i*limit : max]
|
||||||
//SendMulticast sends the given multicast message to all the FCM registration tokens specified.
|
//SendMulticast sends the given multicast message to all the FCM registration tokens specified.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user