fixed bug causing crash in chat history browser

This commit is contained in:
csoler 2025-09-11 20:49:35 +02:00
parent bb97e48db2
commit d64e4b6e78

View file

@ -148,6 +148,9 @@ ImHistoryBrowser::ImHistoryBrowser(const ChatId &chatId, QTextEdit *edit,const Q
auto ev = dynamic_cast<const RsChatServiceEvent*>(event.get());
if(!ev)
return;
if(ev->mEventCode == RsChatServiceEventCode::CHAT_HISTORY_CHANGED)
historyChanged(ev->mMsgHistoryId,ev->mHistoryChangeType);
}, this );