summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/Controllers/Chat/ChatsManager.cpp')
-rw-r--r--Swift/Controllers/Chat/ChatsManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Swift/Controllers/Chat/ChatsManager.cpp b/Swift/Controllers/Chat/ChatsManager.cpp
index 532b925..6530a7e 100644
--- a/Swift/Controllers/Chat/ChatsManager.cpp
+++ b/Swift/Controllers/Chat/ChatsManager.cpp
@@ -372,7 +372,7 @@ void ChatsManager::handleMUCBookmarkRemoved(const MUCBookmark& bookmark) {
372 372
373#ifndef NOT_YET 373#ifndef NOT_YET
374ChatListWindow::Chat ChatsManager::createChatListChatItem(const JID& jid, const std::string& activity, bool privateMessage) { 374ChatListWindow::Chat ChatsManager::createChatListChatItem(const JID& jid, const std::string& activity, bool privateMessage) {
375 int unreadCount = 0; 375 size_t unreadCount = 0;
376 if (mucRegistry_->isMUC(jid)) { 376 if (mucRegistry_->isMUC(jid)) {
377 MUCController* controller = mucControllers_[jid.toBare()]; 377 MUCController* controller = mucControllers_[jid.toBare()];
378 StatusShow::Type type = StatusShow::None; 378 StatusShow::Type type = StatusShow::None;
@@ -447,7 +447,7 @@ void ChatsManager::handleChatClosed(const JID& /*jid*/) {
447#ifndef NOT_YET 447#ifndef NOT_YET
448 448
449void ChatsManager::handleUnreadCountChanged(ChatControllerBase* controller) { 449void ChatsManager::handleUnreadCountChanged(ChatControllerBase* controller) {
450 int unreadTotal = 0; 450 size_t unreadTotal = 0;
451 bool controllerIsMUC = dynamic_cast<MUCController*>(controller); 451 bool controllerIsMUC = dynamic_cast<MUCController*>(controller);
452 bool isPM = controller && !controllerIsMUC && mucRegistry_->isMUC(controller->getToJID().toBare()); 452 bool isPM = controller && !controllerIsMUC && mucRegistry_->isMUC(controller->getToJID().toBare());
453 for (ChatListWindow::Chat& chatItem : recentChats_) { 453 for (ChatListWindow::Chat& chatItem : recentChats_) {