2018-05-19 15:00:28 +02:00
|
|
|
import contacts.contact
|
2018-07-22 13:08:47 +02:00
|
|
|
from contacts.contact_menu import GroupPeerMenuGenerator
|
2018-05-19 15:00:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
class GroupPeerContact(contacts.contact.Contact):
|
|
|
|
|
2018-07-22 11:59:52 +02:00
|
|
|
def __init__(self, profile_manager, message_getter, peer_number, name, widget, tox_id, group_pk):
|
|
|
|
super().__init__(profile_manager, message_getter, peer_number, name, str(), widget, tox_id)
|
2018-05-19 15:00:28 +02:00
|
|
|
self._group_pk = group_pk
|
|
|
|
|
|
|
|
def get_group_pk(self):
|
|
|
|
return self._group_pk
|
|
|
|
|
|
|
|
group_pk = property(get_group_pk)
|
2018-07-22 11:59:52 +02:00
|
|
|
|
|
|
|
def remove_invalid_unsent_files(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def get_context_menu_generator(self):
|
2018-07-22 13:08:47 +02:00
|
|
|
return GroupPeerMenuGenerator(self)
|