[sugar] [PATCH] 1-1 Chat (non-Sugar Jabber clients #6298)

Eben Eliason eben.eliason at gmail.com
Wed May 7 14:06:59 EDT 2008


On Wed, May 7, 2008 at 4:57 AM, Marco Pesenti Gritti <mpgritti at gmail.com> wrote:
> On Wed, May 7, 2008 at 10:03 AM, Morgan Collett
>  <morgan.collett at gmail.com> wrote:
>  >  * I'm (ab)using activityfactory.create_with_uri to launch Chat with
>  >  the Telepathy channel in the metadata.
>  >  * That makes Chat launch magically. That violates the requirement that
>  >  the user initiate the activity.
>
>  Perhaps we can expose incoming messages in the UI as an invitation?

Indeed, the invitation model both makes sense and at the same time
makes the launch a user action instead.  That absolutely needs to be
the way we handle this.

It was asked how we might represent the activity in the UI.  For
starters, I would say that it would be to our benefit to come up with
a service (or a part of the presence service) which can generically
determine the activity (or activities) capably of handling an incoming
request.  There might be a couple of chat activities.  We might have a
distinct video or audio chat activity.  In the future, we might have
non-XO applications which can collaborate with XO activities as well.
That's expanding the scope, but all this to say that ideally we'd have
a way to suggest the appropriate activity icon(s) that can handle the
incoming invitation.

As far as colors go, one interesting option is to try to derive the
colors of the sender based on the fact that most IM clients support a
color pair (background, text) already.  Pulling this off would be
really slick.  Short of that, I'd suggest simply choosing the
receiver's XO color instead, as though they had initiated the
conversation themselves, assuming we can't get such info from the
sender.

- Eben


More information about the Sugar mailing list