コード例 #1
0
ファイル: im.py プロジェクト: Alberto-Beralix/Beralix
 def get_participants(self):
     # If we have no conversation, our contact is probably offline,
     # so we don't actually want this to return our offline contact
     # as adding him or her to a MUC won't work either.
     if self._conversation is None:
         return ButterflyTextChannel.get_participants(self)
     else:
         return set([self._initial_handle.contact])
コード例 #2
0
 def get_participants(self):
     # If we have no conversation, our contact is probably offline,
     # so we don't actually want this to return our offline contact
     # as adding him or her to a MUC won't work either.
     if self._conversation is None:
         return ButterflyTextChannel.get_participants(self)
     else:
         return set([self._initial_handle.contact])