Skip to content

Commit

Permalink
Fix #96: do not send push registration ID with initial presence
Browse files Browse the repository at this point in the history
GCM registration is triggered after login anyway, so there is no need
to send push registration ID in initial presence. It will be changed
anyway with the incoming XEP which will use IQ stanzas.

Signed-off-by: Daniele Ricci <[email protected]>
  • Loading branch information
daniele-athome committed Mar 15, 2014
1 parent 16e730d commit a37c8d0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/org/kontalk/service/MessageCenterService.java
Original file line number Diff line number Diff line change
Expand Up @@ -883,12 +883,6 @@ private void sendPresence() {
if (status != null)
p.setStatus(status);

if (mPushNotifications) {
String pushRegId = GCMRegistrar.getRegistrationId(this);
if (!TextUtils.isEmpty(pushRegId))
p.addExtension(new PushRegistration(pushRegId));
}

sendPacket(p);
}

Expand Down

0 comments on commit a37c8d0

Please sign in to comment.