[Bug 23151] Chan.I. Room — properties of chatrooms and chatroom-like constructs

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri May 6 18:47:10 CEST 2011


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

--- Comment #31 from Will Thompson <will.thompson at collabora.co.uk> 2011-05-06 09:47:09 PDT ---
So I'm basically reviewing Room and Subject from first principles.

What's the point of the Room_Subject_Present flag? Surely if the Subject
interface is implemented, then the channel has a subject; and if not, it
doesn't? Is this a remnant of Subject being part of Room? Or is it to support
the distinction between “the room has no topic” and “I don't know what the
room's topic is”? I would like to think we could avoid caring about the latter
in the API.

I think Can_Set's docstring should be clarified to say that it refers to having
permission to change the subject; and that if the implementation isn't sure, it
SHOULD be set, citing the inadequacies of XEP-0045 in the rationale. I think
the name is fine, the description is just misleading.

If we got rid of the Present flag, then I think the change notification for the
flags could be a separate signal. (Actually I think we could use
DBus.Properties.PropertyChanged for this interface.)

I can see an argument for having the ssx bit of the subject be a single
property, though it might be clearer to have them be separate properties; but I
feel like the flags should be separate. (Or we could even have a CanSetSubject:
b property. Adding more properties isn't more expensive than adding new enum
members.)

The preamble should not say “by Room channels”, it should say “by channels with
the <tp:dbus-ref...>Room</> interface”.

> Clients SHOULD NOT assume success if no errors are raised by calling
> this method, but instead should listen to the SubjectChanged signal
> for change notification.

Why? I think the method should not return until it's either succeeded or
failed; but clients SHOULD monitor the SubjectChanged signal in case the topic
was modified/truncated by the server or whatever.

RoomName and Server should grow the immutable and requestable attributes.

-- 
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