Commit 8186e21b authored by Ronan Abhamon's avatar Ronan Abhamon

feat(src/components/chat/ChatModel): use now linphone resend function

parent 43006b2c
...@@ -344,15 +344,9 @@ void ChatModel::resendMessage (int id) { ...@@ -344,15 +344,9 @@ void ChatModel::resendMessage (int id) {
switch (map["status"].toInt()) { switch (map["status"].toInt()) {
case MessageStatusFileTransferError: case MessageStatusFileTransferError:
case MessageStatusNotDelivered: { 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> message = static_pointer_cast<linphone::ChatMessage>(entry.second);
message->setListener(mMessageHandlers);
shared_ptr<linphone::ChatMessage> message2 = message->clone(); message->resend();
message2->setListener(mMessageHandlers);
mChatRoom->sendChatMessage(message2);
removeEntry(id);
insertMessageAtEnd(message2);
break; break;
} }
......
...@@ -292,8 +292,10 @@ Window { ...@@ -292,8 +292,10 @@ Window {
ActionButton { ActionButton {
Layout.preferredHeight: CallStyle.actionArea.iconSize Layout.preferredHeight: CallStyle.actionArea.iconSize
Layout.preferredWidth: CallStyle.actionArea.iconSize Layout.preferredWidth: CallStyle.actionArea.iconSize
icon: 'options' // TODO: display options. icon: 'options'
iconSize: CallStyle.actionArea.iconSize iconSize: CallStyle.actionArea.iconSize
visible: false // TODO: V2
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment