From fe065f74d6e5b6b1f126a1b0c564a46b9b0dbebf Mon Sep 17 00:00:00 2001 From: Dita Aji Pratama Date: Sun, 14 Jun 2026 12:54:50 +0700 Subject: [PATCH] Extend more idle session time if Direct Message --- services/xmpp_client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/xmpp_client.py b/services/xmpp_client.py index a1f691d..f58cb7a 100644 --- a/services/xmpp_client.py +++ b/services/xmpp_client.py @@ -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(