Scroll is stuck if user goes offline #11

Open
opened 2025-07-02 17:37:41 +00:00 by jabber.developer · 0 comments

The reason of this is ev_disconnect_cleanup method closing connection to DB on sv_ev_lost_connection (connection loss event handler).

Potentially, current JID also needs to be preserved, otherwise it can be hard to filter the messages by current user.

    if (!myjid->str) {
        log_warning("log_database_get_previous_chat() called but no connection detected.");
        return DB_RESPONSE_ERROR;
    }
The reason of this is `ev_disconnect_cleanup` method closing connection to DB on `sv_ev_lost_connection` (connection loss event handler). Potentially, current JID also needs to be preserved, otherwise it can be hard to filter the messages by current user. ```c if (!myjid->str) { log_warning("log_database_get_previous_chat() called but no connection detected."); return DB_RESPONSE_ERROR; } ```
jabber.developer self-assigned this 2025-09-01 22:23:46 +00:00
jabber.developer added the
Kind/Bug
label 2025-09-01 22:24:42 +00:00
jabber.developer added this to the Plans (2025-2026) project 2025-11-10 12:25:47 +00:00
jabber.developer added a new dependency 2026-06-20 11:06:44 +00:00
jabber.developer added the
Priority
Medium
3
Reviewed
Confirmed
1
labels 2026-06-24 07:30:47 +00:00
jabber.developer moved this to To Do in Plans (2025-2026) on 2026-06-24 07:33:05 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Blocks
Reference: devs/cproof#11
No description provided.