[Bug 27269] API review: TplContact
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed May 26 15:23:50 CEST 2010
https://bugs.freedesktop.org/show_bug.cgi?id=27269
--- Comment #10 from Simon McVittie <simon.mcvittie at collabora.co.uk> 2010-05-26 06:23:50 PDT ---
(In reply to comment #9)
> > When on 1-1
> > - sender and receiver are set to a TplContact and TPL_CONTACT_{SELF,CONTACT} is
> > also set.
> > - chat_id = as before
> >
> > When on ROOM
> > - sender and receiver are set to a TplContact, and TPL_CONTACT_{SELF,GROUP} is
> > also set.
> > - chat_id = as before
> >
> > The alternative to this way is adding a further member calling room_id, which
> > would be NULL on 1-1, while be set to the real room name/id on TYPE_ROOM with
> > the remote TplContact (representing only a TYPE_CONTACT) set to NULL.
Let's have some concrete examples: "smcv" is the self-contact, "fred" is
another contact, and "#telepathy" is a room.
In #telepathy:
<smcv> fred: ping?
<fred> smcv: pong
In a private chat with Fred:
<smcv> hello?
<fred> o hai
Am I right in thinking those four log entries are as follows?
(chat_id="#telepathy", sender=<SELF, smcv>, receiver=<ROOM, #telepathy>,
text="fred: ping?")
(chat_id="#telepathy", sender=<CONTACT, fred>, receiver=<ROOM, #telepathy>,
text="smcv: pong")
(chat_id="fred", sender=<SELF, smcv>, receiver=<CONTACT, fred>, text="hello?")
(chat_id="fred", sender=<CONTACT, fred>, receiver=<SELF, smcv>, text="o hai")
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the telepathy-bugs
mailing list