also use xmpp JID as part of settings persistence
continuous-integration/drone the build failed
Details
continuous-integration/drone the build failed
Details
This commit is contained in:
parent
6d154bfdb1
commit
5e0ec90bf4
|
@ -178,7 +178,7 @@ func (s *XMPPService) selectGateway() {
|
|||
if s.KeepGateway {
|
||||
return
|
||||
}
|
||||
conns := s.store.GetUnequalSettings(s.gateway.String())
|
||||
conns := s.store.GetUnequalSettings(s.gateway.String() + s.session.LocalAddr().Bare().String())
|
||||
if len(conns) <= 0 {
|
||||
return
|
||||
}
|
||||
|
@ -242,7 +242,7 @@ func (s *XMPPService) Register(appID, appToken string) (string, string, error) {
|
|||
"appID": appID,
|
||||
"appToken": appToken,
|
||||
})
|
||||
conn := s.store.NewConnection(appID, appToken, s.gateway.String())
|
||||
conn := s.store.NewConnection(appID, appToken, s.gateway.String()+s.session.LocalAddr().Bare().String())
|
||||
if conn == nil {
|
||||
errStr := "error to store public token"
|
||||
err := errors.New(errStr)
|
||||
|
|
Loading…
Reference in New Issue