diff --git a/src/widget/form/genericchatform.cpp b/src/widget/form/genericchatform.cpp index 110a060c1..6ec99d01a 100644 --- a/src/widget/form/genericchatform.cpp +++ b/src/widget/form/genericchatform.cpp @@ -501,7 +501,7 @@ void GenericChatForm::addSystemInfoMessage(const QDateTime& datetime, SystemMess SystemMessage::Args messageArgs) { SystemMessage systemMessage; - systemMessage.messageType = static_cast(messageType); + systemMessage.messageType = messageType; systemMessage.timestamp = datetime; systemMessage.args = std::move(messageArgs); chatLog.addSystemMessage(systemMessage);