Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: chat history scrolling in groups/conferences #369

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/conference.c
Original file line number Diff line number Diff line change
@@ -367,6 +367,10 @@ void redraw_conference_win(ToxWindow *self)

scrollok(ctx->history, 0);
wmove(self->window, y2 - CURS_Y_OFFSET, 0);

if (!self->scroll_pause) {
line_info_reset_start(self, ctx->hst);
}
}

static void conference_onConferenceMessage(ToxWindow *self, Toxic *toxic, uint32_t conferencenum, uint32_t peernum,
4 changes: 4 additions & 0 deletions src/groupchats.c
Original file line number Diff line number Diff line change
@@ -945,6 +945,10 @@ void redraw_groupchat_win(ToxWindow *self)
wmove(self->window, y2 - CURS_Y_OFFSET, 0);

self->x = 0; // trigger the statusbar to be re-sized

if (!self->scroll_pause) {
line_info_reset_start(self, ctx->hst);
}
}

static void group_onAction(ToxWindow *self, Toxic *toxic, uint32_t groupnumber, uint32_t peer_id, const char *action,
Loading