mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-24 15:18:07 +00:00
feat(src/components/chat/ChatModel): use now linphone resend function
This commit is contained in:
parent
43006b2c90
commit
8186e21b4c
2 changed files with 5 additions and 9 deletions
|
|
@ -344,15 +344,9 @@ void ChatModel::resendMessage (int id) {
|
|||
switch (map["status"].toInt()) {
|
||||
case MessageStatusFileTransferError:
|
||||
case MessageStatusNotDelivered: {
|
||||
// TODO: Do not duplicate me! Use a linphone core function in the future.
|
||||
shared_ptr<linphone::ChatMessage> message = static_pointer_cast<linphone::ChatMessage>(entry.second);
|
||||
|
||||
shared_ptr<linphone::ChatMessage> message2 = message->clone();
|
||||
message2->setListener(mMessageHandlers);
|
||||
mChatRoom->sendChatMessage(message2);
|
||||
|
||||
removeEntry(id);
|
||||
insertMessageAtEnd(message2);
|
||||
message->setListener(mMessageHandlers);
|
||||
message->resend();
|
||||
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -292,8 +292,10 @@ Window {
|
|||
ActionButton {
|
||||
Layout.preferredHeight: CallStyle.actionArea.iconSize
|
||||
Layout.preferredWidth: CallStyle.actionArea.iconSize
|
||||
icon: 'options' // TODO: display options.
|
||||
icon: 'options'
|
||||
iconSize: CallStyle.actionArea.iconSize
|
||||
|
||||
visible: false // TODO: V2
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue