discovery: join chatroom without warning
Change-Id: Id5d844132bf2259e4c78276f7f0b9033d2058015
Refs: #2486
diff --git a/src/controller-backend.cpp b/src/controller-backend.cpp
index 217228e..771154a 100644
--- a/src/controller-backend.cpp
+++ b/src/controller-backend.cpp
@@ -292,6 +292,9 @@
Name::Component chatroomName = interestName.at(i+1);
Block contentBlock = data.getContent();
int res = ndn::readNonNegativeInteger(contentBlock);
+ if (m_chatDialogList.contains(QString::fromStdString(chatroomName.toUri())))
+ return;
+
// if data is true,
if (res == 1)
emit startChatroom(QString::fromStdString(chatroomName.toUri()), false);