The 'topic' attribute of purpleIConvChat should be settable.
This commit is contained in:
Родитель
7a4007ef4b
Коммит
77933434cd
|
@ -122,12 +122,16 @@ interface purpleIConvChat: purpleIConversation {
|
|||
The list of people participating in this chat */
|
||||
nsISimpleEnumerator getParticipants();
|
||||
|
||||
/* The topic of this chat room (FIXME settable?) */
|
||||
readonly attribute AUTF8String topic;
|
||||
/* The topic of this chat room */
|
||||
attribute AUTF8String topic;
|
||||
|
||||
/* The name/nick of the person who set the topic */
|
||||
readonly attribute AUTF8String topicSetter;
|
||||
|
||||
/* Whether the protocol plugin can set a topic. Doesn't check that
|
||||
the user has the necessary rights in the current conversation. */
|
||||
readonly attribute boolean topicSettable;
|
||||
|
||||
/* The nick seen by other people in the room */
|
||||
readonly attribute AUTF8String nick;
|
||||
|
||||
|
|
|
@ -270,7 +270,9 @@ UIConversation.prototype = {
|
|||
// Chat only
|
||||
getParticipants: function() this.target.getParticipants(),
|
||||
get topic() this.target.topic,
|
||||
set topic(aTopic) { this.target.topic = aTopic; },
|
||||
get topicSetter() this.target.topicSetter,
|
||||
get topicSettable() this.target.topicSettable,
|
||||
get nick() this.target.nick,
|
||||
get left() this.target.left
|
||||
};
|
||||
|
|
|
@ -554,6 +554,7 @@ const GenericConvChatPrototype = {
|
|||
get nick() this._nick,
|
||||
get topic() this._topic,
|
||||
get topicSetter() this._topicSetter,
|
||||
get topicSettable() false,
|
||||
get left() false,
|
||||
|
||||
getParticipants: function() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче