Initialize the stream also when publishing

This commit is contained in:
Marco Pesenti Gritti 2006-06-27 12:27:30 -04:00
parent d61c478168
commit 9ef8013a6b

View File

@ -23,8 +23,6 @@ class ActivityChat(GroupChat):
return return
if service.get_type() != ActivityChat.SERVICE_TYPE: if service.get_type() != ActivityChat.SERVICE_TYPE:
return return
if buddy and buddy.is_owner():
return
if self._chat_service: if self._chat_service:
return return
@ -42,3 +40,4 @@ class ActivityChat(GroupChat):
"""Only called when we publish the activity this chat is tied to.""" """Only called when we publish the activity this chat is tied to."""
self._chat_service = self._pservice.share_activity(self._activity, self._chat_service = self._pservice.share_activity(self._activity,
stype=ActivityChat.SERVICE_TYPE) stype=ActivityChat.SERVICE_TYPE)
self._setup_stream(self._chat_service)