Skip to content

Commit 7321446

Browse files
committed
Merge pull request #309 from GoogleCloudPlatform/xmpp
Sample fixup
2 parents 9f68a02 + 6f28c4e commit 7321446

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

appengine/xmpp/xmpp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ def post(self):
4444
# from the resource (e.g., gmail), and then add the
4545
# address to the roster.
4646
sender = self.request.get('from').split('/')[0]
47-
roster.add_contact(sender)
47+
xmpp.send_presence(sender, status=self.request.get('status'),
48+
presence_show=self.request.get('show'))
4849
# [END presence]
4950

5051

0 commit comments

Comments
 (0)