Bug 30963

Summary: A way for Handlers to match channels based on their Accounts
Product: Telepathy Reporter: Senko Rasic <senko>
Component: tp-specAssignee: Vivek Dasmohapatra <vivek>
Status: RESOLVED MOVED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: enhancement    
Priority: medium CC: rishi.is
Version: unspecifiedKeywords: patch
Hardware: Other   
OS: All   
URL: http://git.collabora.co.uk/?p=user/ptlo/tp-spec-senko/.git;a=shortlog;h=refs/heads/account-filters
Whiteboard: stalled
i915 platform: i915 features:
Bug Depends on: 30964    
Bug Blocks:    

Description Senko Rasic 2010-10-18 06:47:29 UTC
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.
Comment 1 Senko Rasic 2010-10-18 07:04:57 UTC
Reassigning to Vivek for reviewing and setting severity to enhancement.
Comment 2 Simon McVittie 2010-10-18 07:16:46 UTC
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?
Comment 3 GitLab Migration User 2019-12-03 20:22:42 UTC
-- 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.