summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCatalin Badea <catalin.badea392@gmail.com>2012-07-29 13:42:06 (GMT)
committerCătălin Badea <catalin.badea392@gmail.com>2012-08-11 15:59:13 (GMT)
commit94ff6ec9e699a2db97775063eb7fa2f6d24b281a (patch)
tree80d093df35ea27b258957130c53b859faad5e177 /Swift/Controllers/HistoryViewController.cpp
parentc0f0ab471345fe3f3a3517bb302c7da1549c8f25 (diff)
downloadswift-contrib-94ff6ec9e699a2db97775063eb7fa2f6d24b281a.zip
swift-contrib-94ff6ec9e699a2db97775063eb7fa2f6d24b281a.tar.bz2
Fix adding messages at the top.
Diffstat (limited to 'Swift/Controllers/HistoryViewController.cpp')
-rw-r--r--Swift/Controllers/HistoryViewController.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Swift/Controllers/HistoryViewController.cpp b/Swift/Controllers/HistoryViewController.cpp
index e5e2acc..c6e663b 100644
--- a/Swift/Controllers/HistoryViewController.cpp
+++ b/Swift/Controllers/HistoryViewController.cpp
@@ -158,9 +158,10 @@ void HistoryViewController::handleReturnPressed(const std::string& keyword) {
void HistoryViewController::handleScrollReachedTop(const boost::gregorian::date& date) {
std::vector<HistoryMessage> messages = historyController_->getMessagesFromPreviousDate(selfJID_, selectedItem_->getJID(), selectedItemType_, date);
- reverse_foreach (const HistoryMessage& message, messages) {
+ foreach (const HistoryMessage& message, messages) {
addNewMessage(message, true);
}
+ historyWindow_->resetConversationViewTopInsertPoint();
}
void HistoryViewController::handleScrollReachedBottom(const boost::gregorian::date& date) {