mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-02 10:56:24 +00:00
fix(MainDb): avoid old c-style cast
This commit is contained in:
parent
58e0b47a99
commit
30b270f221
1 changed files with 1 additions and 1 deletions
|
|
@ -601,7 +601,7 @@ shared_ptr<EventLog> MainDbPrivate::selectConferenceChatMessageEvent (
|
|||
chatMessage->setIsSecured(bool(row.get<int>(9)));
|
||||
|
||||
ChatMessagePrivate *dChatMessage = chatMessage->getPrivate();
|
||||
ChatMessage::State messageState = (ChatMessage::State) row.get<int>(7);
|
||||
ChatMessage::State messageState = ChatMessage::State(row.get<int>(7));
|
||||
// This is necessary if linphone has crashed while sending a message. It will set the correct state so the user can resend it.
|
||||
if (messageState == ChatMessage::State::Idle || messageState == ChatMessage::State::InProgress)
|
||||
messageState = ChatMessage::State::NotDelivered;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue