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

This commit is contained in:
Ronan Abhamon 2017-05-10 10:28:42 +02:00
parent 43006b2c90
commit 8186e21b4c
2 changed files with 5 additions and 9 deletions

View file

@ -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;
}

View file

@ -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
}
}