summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-06-07 05:57:00 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-06-07 05:57:00 (GMT)
commitcca06e56679065f4b166a72623da36ddf598366e (patch)
tree6074f5b76d73076cf91bc24d4fc2328a2651d279 /Swift
parentbabda920a6c6efdd6464093b55c7ff752181a63b (diff)
downloadswift-contrib-cca06e56679065f4b166a72623da36ddf598366e.zip
swift-contrib-cca06e56679065f4b166a72623da36ddf598366e.tar.bz2
Remove TODO.
Diffstat (limited to 'Swift')
-rw-r--r--Swift/Controllers/Chat/ChatControllerBase.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Swift/Controllers/Chat/ChatControllerBase.cpp b/Swift/Controllers/Chat/ChatControllerBase.cpp
index adafff0..1650dbf 100644
--- a/Swift/Controllers/Chat/ChatControllerBase.cpp
+++ b/Swift/Controllers/Chat/ChatControllerBase.cpp
@@ -149,12 +149,13 @@ void ChatControllerBase::handleIncomingMessage(boost::shared_ptr<MessageEvent> m
boost::shared_ptr<SecurityLabel> label = message->getPayload<SecurityLabel>();
boost::optional<SecurityLabel> maybeLabel = label ? boost::optional<SecurityLabel>(*label) : boost::optional<SecurityLabel>();
- // TODO: determine the timestamp
+ // Determine the timestamp
boost::posix_time::ptime timeStamp = boost::posix_time::microsec_clock::universal_time();
boost::optional<boost::posix_time::ptime> messageTimeStamp = getMessageTimestamp(message);
if (messageTimeStamp) {
timeStamp = *messageTimeStamp;
}
+
addMessage(body, senderDisplayNameFromMessage(from), isIncomingMessageFromMe(message), maybeLabel, String(avatarManager_->getAvatarPath(from).string()), timeStamp);
}
}