mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-23 14:48:15 +00:00
fix(src/components/chat/ChatModel): create thumbnail when message is sent
This commit is contained in:
parent
490ff80135
commit
eaecac8584
1 changed files with 2 additions and 2 deletions
|
|
@ -356,8 +356,6 @@ void ChatModel::resendMessage (int id) {
|
|||
case MessageStatusNotDelivered: {
|
||||
shared_ptr<linphone::ChatMessage> message = static_pointer_cast<linphone::ChatMessage>(entry.second);
|
||||
|
||||
// TODO: Remove workaround in a future linphone core version.
|
||||
// `sendChatMessage` duplicates the message on resend.
|
||||
shared_ptr<linphone::ChatMessage> message2 = message->clone();
|
||||
message2->setListener(m_message_handlers);
|
||||
m_chat_room->sendChatMessage(message2);
|
||||
|
|
@ -391,6 +389,8 @@ void ChatModel::sendFileMessage (const QString &path) {
|
|||
message->setFileTransferFilepath(::Utils::qStringToLinphoneString(path));
|
||||
message->setListener(m_message_handlers);
|
||||
|
||||
createThumbnail(message);
|
||||
|
||||
insertMessageAtEnd(message);
|
||||
m_chat_room->sendChatMessage(message);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue