It would be useful if a handler could match channels based on their accounts. Eg. irc-optimized client could say 'I want to handle all text channels on accounts that use protocol "irc".' A way to do this could be filters matching Account object path and/or properties. To make this more useful, a read-only Protocol property could be added to Account - although it's encoded in the Account object path, having a separate property is useful for matching.
Reassigning to Vivek for reviewing and setting severity to enhancement.
The semantics in terms of "and" and "or" need to be clearer. I assume the semantics are meant to be: handle every channel where both either the account matches AccountFilter[0] or the account matches AccountFilter[1] ... and either the channel matches HandlerChannelFilter[0] or the channel matches HandlerChannelFilter[1] ... I'm not sure that this should be on Handler: how about a new Client.I.AccountFiltering that could apply to any class of Client?
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/telepathy/telepathy-spec/issues/86.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.