minimal working ngc version - sending messages, invites, char creation

This commit is contained in:
ingvar1995 2018-05-19 19:27:27 +03:00
parent ef4a1b18fd
commit a935d602f8
6 changed files with 43 additions and 17 deletions

View file

@ -39,7 +39,7 @@ class GroupChat(contact.Contact):
self._tox.group_peer_get_public_key(self._number, peer_id))
self._peers.append(peer)
def get_peer(self, peer_id):
def get_peer_by_id(self, peer_id):
peers = list(filter(lambda p: p.id == peer_id, self._peers))
return peers[0]