summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandr Akulich <akulichalexander@gmail.com>2016-02-20 14:02:45 +0500
committerAlexandr Akulich <akulichalexander@gmail.com>2016-02-20 14:02:45 +0500
commitb6a13e11947790485e70675e3f10aa740119d316 (patch)
treecb8ea5dd98b38beb6610d93d2253df4703868f55
parent8d251e61bf6a99c6364ac9d522374679f03b910e (diff)
BaseChannelGroupInterface: Now we also always expose Properties flag.
Tp::ChannelGroupFlagProperties and Tp::ChannelGroupFlagMembersChangedDetailed flags now always ON. There is no reason to behave differently and this way we improve source-level compatibility with future Telepathy specs.
-rw-r--r--TelepathyQt/base-channel.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/TelepathyQt/base-channel.cpp b/TelepathyQt/base-channel.cpp
index f24c9cf3..a7ae5043 100644
--- a/TelepathyQt/base-channel.cpp
+++ b/TelepathyQt/base-channel.cpp
@@ -2607,7 +2607,7 @@ BaseChannelGroupInterface::Adaptee::~Adaptee()
uint BaseChannelGroupInterface::Adaptee::groupFlags() const
{
- return mInterface->groupFlags() | Tp::ChannelGroupFlagMembersChangedDetailed;
+ return mInterface->groupFlags();
}
Tp::HandleOwnerMap BaseChannelGroupInterface::Adaptee::handleOwners() const
@@ -2864,16 +2864,17 @@ QVariantMap BaseChannelGroupInterface::immutableProperties() const
*/
Tp::ChannelGroupFlags BaseChannelGroupInterface::groupFlags() const
{
- return mPriv->groupFlags;
+ return mPriv->groupFlags | Tp::ChannelGroupFlagProperties | Tp::ChannelGroupFlagMembersChangedDetailed;
}
/**
* Set the group flags for this channel.
*
* The user interface can use this to present information about which operations are currently valid.
- * It is not recommended to set Tp::ChannelGroupFlagMembersChangedDetailed flag: MembersChangedDetailed
- * signal is implemented in the interface and enabled unconditionally, because there is no reason to
- * disable it and this improve compatibility with future Telepathy specs.
+ * Take a note, that Tp::ChannelGroupFlagProperties and Tp::ChannelGroupFlagMembersChangedDetailed flags setted up
+ * unconditionally. This way we always provide modern properties (ChannelGroupFlagProperties) and automatically
+ * emit signal MembersChangedDetailed. There is no reason to behave differently and this improve compatibility with
+ * future Telepathy specs.
*
* \param flags The flags on this channel.
*