diff --git a/src/widget/form/genericchatform.cpp b/src/widget/form/genericchatform.cpp index 55c8106c5..aabc70e16 100644 --- a/src/widget/form/genericchatform.cpp +++ b/src/widget/form/genericchatform.cpp @@ -486,7 +486,7 @@ QString GenericChatForm::resolveToxId(const ToxId &id) void GenericChatForm::insertChatMessage(ChatMessage::Ptr msg) { - chatWidget->insertChatlineAtBottom(std::dynamic_pointer_cast(msg)); + chatWidget->insertChatlineAtBottom(std::static_pointer_cast(msg)); emit messageInserted(); }