Extend more idle session time if Direct Message
This commit is contained in:
parent
540e166e89
commit
fe065f74d6
@ -308,7 +308,8 @@ class XMPPClient(ClientXMPP):
|
||||
|
||||
self._agent_loop(session, jid, body, 'chat', sender_nickname=jid)
|
||||
|
||||
session.start_timer(300, self._timeout_session, jid, 'chat')
|
||||
# DM: timeout 24 jam (efektif tidak auto-close), MUC tetap 5 menit
|
||||
session.start_timer(86400, self._timeout_session, jid, 'chat')
|
||||
|
||||
def _process_muc(self, room, nick, body):
|
||||
session = self._session_mgr.get_or_create(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user