Remove old unused code
This commit is contained in:
parent
4247746c36
commit
97f6b84b90
|
@ -94,7 +94,7 @@ class Contact(CommonContact):
|
||||||
"""
|
"""
|
||||||
def __init__(self, jid, account, name='', groups=None, show='', status='',
|
def __init__(self, jid, account, name='', groups=None, show='', status='',
|
||||||
sub='', ask='', resource='', priority=0, keyID='', client_caps=None,
|
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):
|
if not isinstance(jid, str):
|
||||||
print('no str')
|
print('no str')
|
||||||
if groups is None:
|
if groups is None:
|
||||||
|
@ -111,7 +111,6 @@ class Contact(CommonContact):
|
||||||
|
|
||||||
self.priority = priority
|
self.priority = priority
|
||||||
self.keyID = keyID
|
self.keyID = keyID
|
||||||
self.msg_log_id = msg_log_id
|
|
||||||
self.idle_time = idle_time
|
self.idle_time = idle_time
|
||||||
|
|
||||||
self.pep = {}
|
self.pep = {}
|
||||||
|
|
|
@ -129,8 +129,6 @@ class ChatControlSession(stanza_session.EncryptedStanzaSession):
|
||||||
# Brand new message, incoming.
|
# Brand new message, incoming.
|
||||||
contact.our_chatstate = obj.chatstate
|
contact.our_chatstate = obj.chatstate
|
||||||
contact.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
|
# THIS MUST BE AFTER chatstates handling
|
||||||
# AND BEFORE playsound (else we hear sounding on chatstates!)
|
# AND BEFORE playsound (else we hear sounding on chatstates!)
|
||||||
|
|
Loading…
Reference in New Issue