X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fchannel%2Ftext.py;h=e882bfd8a239d315490fb66be8979d19cb9f18f6;hb=662a95ad50d99c99e78b7e5207834c14ac91ec2c;hp=8fe4a5f76cdbe86031478820f9bfb1066140c0e1;hpb=6746a49f5ca69cfe1b4ebbd06e9a968973b75412;p=theonering diff --git a/src/channel/text.py b/src/channel/text.py index 8fe4a5f..e882bfd 100644 --- a/src/channel/text.py +++ b/src/channel/text.py @@ -9,9 +9,8 @@ class TextChannel(telepathy.server.ChannelTypeText): Look into implementing ChannelInterfaceMessages for rich text formatting """ - def __init__(self, connection, conversation): + def __init__(self, connection): self._recv_id = 0 - self._conversation = conversation self._connRef = weakref.ref(connection) telepathy.server.ChannelTypeText.__init__(self, connection, None) @@ -21,9 +20,7 @@ class TextChannel(telepathy.server.ChannelTypeText): def Send(self, messageType, text): if messageType == telepathy.CHANNEL_TEXT_MESSAGE_TYPE_NORMAL: - self._conversation.send_text_message(text) - elif messageType == telepathy.CHANNEL_TEXT_MESSAGE_TYPE_ACTION and text == u"nudge": - self._conversation.send_nudge() + pass else: raise telepathy.NotImplemented("Unhandled message type") self.Sent(int(time.time()), messageType, text)