diff --git a/chat/chat.py b/chat/chat.py index 2948c263..a5f3fc8a 100755 --- a/chat/chat.py +++ b/chat/chat.py @@ -341,7 +341,7 @@ class GroupChat(Chat): def _buddy_recv_message(self, sender, msg): chat = sender.chat() if not chat: - chat = BuddyChat(self._parent, sender) + chat = BuddyChat(self, sender) sender.set_chat(chat) chat.activity_connect_to_shell() chat.recv_message(message) diff --git a/chat/p2p.py b/chat/p2p.py index fb21eb94..df223d1e 100644 --- a/chat/p2p.py +++ b/chat/p2p.py @@ -13,7 +13,7 @@ class GroupRequestHandler(object): def message(self, message): address = network.get_authinfo() - self._group.recv(address, message) + self._group.recv(address[0], message) class Owner: instance = None