From f8e77a8cbf9e6ad1fc2a51ed16f89a41c0da560b Mon Sep 17 00:00:00 2001
From: Tobias Markmann <tm@ayena.de>
Date: Tue, 24 Apr 2012 18:25:10 +0200
Subject: Setting previous*-flags after handling invite messages.

Resolves: #1100

License: This patch is BSD-licensed, see http://www.opensource.org/licenses/bsd-license.php

diff --git a/Swift/QtUI/QtChatWindow.cpp b/Swift/QtUI/QtChatWindow.cpp
index 42fe0f5..0164ee5 100644
--- a/Swift/QtUI/QtChatWindow.cpp
+++ b/Swift/QtUI/QtChatWindow.cpp
@@ -882,6 +882,9 @@ void QtChatWindow::addMUCInvitation(const std::string& senderName, const JID& ji
 	QString qAvatarPath = "qrc:/icons/avatar.png";
 
 	messageLog_->addMessage(boost::shared_ptr<ChatSnippet>(new MessageSnippet(htmlString, Qt::escape(P2QSTRING(senderName)), B2QDATE(boost::posix_time::second_clock::local_time()), qAvatarPath, false, appendToPrevious, theme_, id)));
+	previousMessageWasSelf_ = false;
+	previousSenderName_ = P2QSTRING(senderName);
+	previousMessageKind_ = PreviousMessageWasMUCInvite;
 }
 
 }
-- 
cgit v0.10.2-6-g49f6