Skip to content

Commit

Permalink
Merge pull request #309 from GoogleCloudPlatform/xmpp
Browse files Browse the repository at this point in the history
Sample fixup
  • Loading branch information
waprin committed Apr 28, 2016
2 parents 9f68a02 + 6f28c4e commit 7321446
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion appengine/xmpp/xmpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ def post(self):
# from the resource (e.g., gmail), and then add the
# address to the roster.
sender = self.request.get('from').split('/')[0]
roster.add_contact(sender)
xmpp.send_presence(sender, status=self.request.get('status'),
presence_show=self.request.get('show'))
# [END presence]


Expand Down

0 comments on commit 7321446

Please sign in to comment.