Remove old unused code

This commit is contained in:
Philipp Hörist 2017-08-01 23:19:03 +02:00
parent 4247746c36
commit 97f6b84b90
2 changed files with 1 additions and 4 deletions

View File

@ -94,7 +94,7 @@ class Contact(CommonContact):
"""
def __init__(self, jid, account, name='', groups=None, show='', status='',
sub='', ask='', resource='', priority=0, keyID='', client_caps=None,
our_chatstate=None, chatstate=None, idle_time=None, msg_log_id=None):
our_chatstate=None, chatstate=None, idle_time=None):
if not isinstance(jid, str):
print('no str')
if groups is None:
@ -111,7 +111,6 @@ class Contact(CommonContact):
self.priority = priority
self.keyID = keyID
self.msg_log_id = msg_log_id
self.idle_time = idle_time
self.pep = {}

View File

@ -129,8 +129,6 @@ class ChatControlSession(stanza_session.EncryptedStanzaSession):
# Brand new message, incoming.
contact.our_chatstate = obj.chatstate
contact.chatstate = obj.chatstate
if obj.msg_log_id: # Do not overwrite an existing msg_log_id with None
contact.msg_log_id = obj.msg_log_id
# THIS MUST BE AFTER chatstates handling
# AND BEFORE playsound (else we hear sounding on chatstates!)