summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2014-02-19 15:34:52 (GMT)
committerSwift Review <review@swift.im>2014-02-22 17:50:30 (GMT)
commitc54f38cabcf6db20b933a447135e73866156b871 (patch)
tree19f7881a6cd4330c8591b7c43ba6c9f4be9b54b4 /Swift/QtUI
parentf437c387a2bb31e4bf79869dfe40a541cda4f6c6 (diff)
downloadswift-c54f38cabcf6db20b933a447135e73866156b871.zip
swift-c54f38cabcf6db20b933a447135e73866156b871.tar.bz2
Handle error responses to XEP-0184 receipt requests.
Change-Id: I23d77168c1c387342164d857a3eb5577bff65fb9 License: This patch is BSD-licensed, see Documentation/Licenses/BSD-simplified.txt for details.
Diffstat (limited to 'Swift/QtUI')
-rw-r--r--Swift/QtUI/QtWebKitChatView.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Swift/QtUI/QtWebKitChatView.cpp b/Swift/QtUI/QtWebKitChatView.cpp
index d1e250c..3f021e9 100644
--- a/Swift/QtUI/QtWebKitChatView.cpp
+++ b/Swift/QtUI/QtWebKitChatView.cpp
@@ -905,6 +905,8 @@ void QtWebKitChatView::setMessageReceiptState(const std::string& id, ChatWindow:
case ChatWindow::ReceiptRequested:
xml = "<img src='qrc:/icons/warn.png' title='" + tr("The receipt for this message has not yet been received. The recipient(s) might not have received this message.") + "'/>";
break;
+ case ChatWindow::ReceiptFailed:
+ xml = "<img src='qrc:/icons/error.png' title='" + tr("Failed to transmit message to the receipient(s).") + "'/>";
}
setReceiptXML(P2QSTRING(id), xml);
}