Skip to content

Commit a8fcbca

Browse files
author
Bill Prin
committed
Sample mixup
1 parent a09baa4 commit a8fcbca

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)