From 1037fe6ca45006ba40522542d71b67ea7edb82ef Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Wed, 28 Mar 2007 11:58:47 +0200 Subject: [PATCH] Disable invites --- shell/view/ActivityHost.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/shell/view/ActivityHost.py b/shell/view/ActivityHost.py index de23d4e7..cc0c0ddb 100644 --- a/shell/view/ActivityHost.py +++ b/shell/view/ActivityHost.py @@ -72,15 +72,7 @@ class ActivityHost: self._chat_widget.share() def invite(self, buddy): - if not self.get_shared(): - self.share() - - issuer = self._pservice.get_owner().get_name() - service = buddy.get_service_of_type("_presence_olpc._tcp") - stream = Stream.Stream.new_from_service(service, start_reader=False) - writer = stream.new_writer(service) - writer.custom_request("invite", None, None, issuer, - self._type, self._id) + pass def present(self): self._window.activate(gtk.get_current_event_time())