diff options
author | Vivek Dasmohapatra <vivek@collabora.co.uk> | 2011-03-16 15:26:08 +0000 |
---|---|---|
committer | Vivek Dasmohapatra <vivek@collabora.co.uk> | 2011-04-05 14:19:09 +0100 |
commit | 71940213008b3c46ffb66af68ff4ae17c6fa72cd (patch) | |
tree | 1946d198e6ff18e7baf9ba467e2711ce39a109c1 | |
parent | 43a84a875c4ef570af89b2eb7acbdd302539a07b (diff) | |
download | telepathy-mission-control-71940213008b3c46ffb66af68ff4ae17c6fa72cd.tar.gz |
Use the new always dispatchable info to bypass checks where necessary
-rw-r--r-- | src/mcd-connection.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mcd-connection.c b/src/mcd-connection.c index ca53dc8c..d9098866 100644 --- a/src/mcd-connection.c +++ b/src/mcd-connection.c @@ -2229,9 +2229,17 @@ static gboolean mcd_connection_need_dispatch (McdConnection *connection, const GPtrArray *channels) { + McdAccount *account = mcd_connection_get_account (connection); gboolean any_requested = FALSE, requested_by_us = FALSE; guint i; + if (_mcd_account_needs_dispatch (account)) + { + DEBUG ("Account %s must always be dispatched, bypassing checks", + mcd_account_get_object_path (account)); + return TRUE; + } + /* We must _not_ handle channels that have the Requested flag set but that * have no McdChannel object associated: these are the channels directly * requested to the CM by some other application, and we must ignore them |