[Bug 25293] ChannelDispatcher: can't migrate channels between Clients

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Mar 14 14:37:33 CET 2011


https://bugs.freedesktop.org/show_bug.cgi?id=25293

--- Comment #10 from Will Thompson <will.thompson at collabora.co.uk> 2011-03-14 06:37:32 PDT ---
ReDispatchChannels
------------------

I think something like DelegateChannels() would be a better name. It doesn't
actually send the channel through the whole dispatcher again—or does it? Do
Observers get the channel again? Is a ChannelRequest created? I guess you think
this is an open question too. :)

(In reply to comment #9)
> Actually, what's the point to pass the Account to ReDispatchChannels() and
> ReEnsureChannel()? MC should already know it from the channel(s).

I kind of agree. If ReDispatchChannels() is plural, then why shouldn't we be
able to redispatch channels from different accounts? This would also make it
marginally easier to use.

    The time at which user action occurred, or 0 if this channel request is for
    some reason not involving user action.

What channel request?

    Either the well-known bus name (starting with
    org.freedesktop.Telepathy.Client.) of the preferred new handler for these
    channels, or an empty string to indicate that any handler would be
    acceptable. The behaviour and rationale are the same as for the
    corresponding parameter to CreateChannelWithHints.

If I pass the empty string for the preferred handler, is it okay for MC to give
me the channel right back again (if I'm the best match)?

I think this method needs an example of how it would be used.

    Additional information about the channels request, which will be used as
    the value for the resulting request's Hints property.

What channel request? :)


ReEnsureChannel
---------------

Again, I think it would be better to have a different method name to more
clearly signal the intent of this method. How about EvokeChannel()?
EvokeHandlerForChannel()? KickHandler()? SummonHandler()?

I think it's inconsistent that one of these methods can take hints and stuff,
bu the other cannot. Since they both end up being a call to HandleChannels() on
some handler…

(Also I wonder how many handlers will deal correctly with being given 5 text
channels at once... ;-))

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the telepathy-bugs mailing list