[telepathy-qt4/master] ContactManager: Let's not assume that contact list groups with empty names are not allowed, let the CM decide it.

Andre Moreira Magalhaes (andrunko) andre.magalhaes at collabora.co.uk
Thu Jul 23 10:08:19 PDT 2009


---
 TelepathyQt4/contact-manager.cpp |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/TelepathyQt4/contact-manager.cpp b/TelepathyQt4/contact-manager.cpp
index a1416e9..e8d49bd 100644
--- a/TelepathyQt4/contact-manager.cpp
+++ b/TelepathyQt4/contact-manager.cpp
@@ -214,11 +214,6 @@ QStringList ContactManager::allKnownGroups() const
  */
 PendingOperation *ContactManager::addGroup(const QString &group)
 {
-    if (group.isEmpty() || group.trimmed().isEmpty()) {
-        return new PendingFailure(this, TELEPATHY_ERROR_INVALID_ARGUMENT,
-                "Group must be a non-empty UTF-8 string");
-    }
-
     // TODO Check here. Spec states that in order to create an empty group
     //      RequestHandles with HandleType 'HandleTypeGroup' and the UTF-8 name
     //      of the group should be called, but this just does not work.
-- 
1.5.6.5




More information about the telepathy-commits mailing list