From a8fcbcaf387a4bf2ab72f9a51177cf4355e0e1e6 Mon Sep 17 00:00:00 2001 From: Bill Prin Date: Thu, 28 Apr 2016 15:46:38 -0700 Subject: [PATCH] Sample mixup --- appengine/xmpp/xmpp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/appengine/xmpp/xmpp.py b/appengine/xmpp/xmpp.py index 11b20c551797..c28603d6a845 100644 --- a/appengine/xmpp/xmpp.py +++ b/appengine/xmpp/xmpp.py @@ -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]