mirror of
https://github.com/Tha14/toxic.git
synced 2025-07-01 03:36:45 +02:00
load chatlog history when opening a chatwindow
This commit is contained in:
@ -1091,8 +1091,11 @@ static void chat_onInit(ToxWindow *self, Tox *m)
|
||||
|
||||
line_info_init(ctx->hst);
|
||||
|
||||
if (Friends.list[self->num].logging_on)
|
||||
log_enable(nick, Friends.list[self->num].pub_key, ctx->log);
|
||||
log_enable(nick, Friends.list[self->num].pub_key, ctx->log);
|
||||
load_chat_history(self, ctx->log);
|
||||
|
||||
if (!Friends.list[self->num].logging_on)
|
||||
log_disable(ctx->log);
|
||||
|
||||
execute(ctx->history, self, m, "/log", GLOBAL_COMMAND_MODE);
|
||||
|
||||
|
Reference in New Issue
Block a user