From 679cd2308b3ea39bbe8bbf2e7e5ba7e37a30f1e0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 28 Sep 2023 18:49:37 +0300 Subject: tabSRMM: fix for broken log message loading --- plugins/TabSRMM/src/msgdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/TabSRMM/src') diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp index f3c43f7fc6..9bd223f402 100644 --- a/plugins/TabSRMM/src/msgdialog.cpp +++ b/plugins/TabSRMM/src/msgdialog.cpp @@ -560,6 +560,8 @@ bool CMsgDialog::OnInitDialog() LoadContactAvatar(); LoadOwnAvatar(); + + GetFirstEvent(); OnOptionsApplied(); if (isChat()) { @@ -575,8 +577,6 @@ bool CMsgDialog::OnInitDialog() UpdateChatLog(); } else { - GetFirstEvent(); - DB::ECPTR pCursor(DB::EventsRev(m_hContact)); while (MEVENT hdbEvent = pCursor.FetchNext()) { DBEVENTINFO dbei = {}; -- cgit v1.2.3