aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy/empathy-tp-chat.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c
index 18087580b..72c6bebf0 100644
--- a/libempathy/empathy-tp-chat.c
+++ b/libempathy/empathy-tp-chat.c
@@ -101,13 +101,14 @@ tp_chat_set_delivery_status (EmpathyTpChat *self,
EmpathyDeliveryStatus delivery_status)
{
EmpathyTpChatPriv *priv = GET_PRIV (self);
+ TpDeliveryReportingSupportFlags flags =
+ tp_text_channel_get_delivery_reporting_support (
+ TP_TEXT_CHANNEL (priv->channel));
/* channel must support receiving failures and successes */
if (!tp_str_empty (token) &&
- tp_text_channel_get_delivery_reporting_support (
- TP_TEXT_CHANNEL (priv->channel)) &
- (TP_DELIVERY_REPORTING_SUPPORT_FLAG_RECEIVE_FAILURES |
- TP_DELIVERY_REPORTING_SUPPORT_FLAG_RECEIVE_SUCCESSES)) {
+ flags & TP_DELIVERY_REPORTING_SUPPORT_FLAG_RECEIVE_FAILURES &&
+ flags & TP_DELIVERY_REPORTING_SUPPORT_FLAG_RECEIVE_SUCCESSES) {
DEBUG ("Delivery status (%s) = %u", token, delivery_status);