1
0
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:
Jfreegman
2014-09-22 04:29:28 -04:00
parent 7fd3aa9164
commit dc3b2e04ab
5 changed files with 73 additions and 8 deletions

View File

@ -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);