Reregister for push notification on joining community

This commit is contained in:
Roman Volosovskyi 2021-09-01 14:57:31 +03:00
parent e63f6461ed
commit d8d5d797da
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
2 changed files with 6 additions and 1 deletions

View File

@ -1 +1 @@
0.86.1 0.86.2

View File

@ -201,6 +201,11 @@ func (m *Messenger) joinCommunity(ctx context.Context, communityID types.HexByte
return nil, err return nil, err
} }
err = m.reregisterForPushNotifications()
if err != nil {
return nil, err
}
err = m.sendCurrentUserStatusToCommunity(ctx, community) err = m.sendCurrentUserStatusToCommunity(ctx, community)
if err != nil { if err != nil {
logger.Debug("m.sendCurrentUserStatusToCommunity error", zap.Error(err)) logger.Debug("m.sendCurrentUserStatusToCommunity error", zap.Error(err))