mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-09-21 13:24:49 -04:00
fixed bug causing crash in chat history browser
This commit is contained in:
parent
bb97e48db2
commit
d64e4b6e78
1 changed files with 3 additions and 0 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue