Просмотр исходного кода

Fixed chat state value, should be `chat` not `chatty`.

JC Brand 9 лет назад
Родитель
Сommit
a2ba3ccd4c
3 измененных файлов с 5 добавлено и 3 удалено
  1. 2 0
      docs/CHANGES.md
  2. 1 1
      src/converse-rosterview.js
  3. 2 2
      src/templates/roster.html

+ 2 - 0
docs/CHANGES.md

@@ -5,6 +5,8 @@
 - Update the 'rooms' API to allow user to pass in room attributes. [jcbrand]
 - Add new configuration setting [message_storage](https://conversejs.org/docs/html/configuration.html#message_storage) [jcbrand]
 - Hardcode the storage for roster contacts and chatroom occupants to `sessionStorage`. [jcbrand]
+- Fixed wrong chat state value, should be `chat`, not `chatty`.
+  See [RFC 3921](https://xmpp.org/rfcs/rfc3921.html#rfc.section.2.1.2.2). [jcbrand]
 
 ## 1.0.6 (2016-08-12)
 - #632 Offline and Logout states do not properly update once users start

+ 1 - 1
src/converse-rosterview.js

@@ -126,7 +126,7 @@
                             label_state: __('State'),
                             label_any: __('Any'),
                             label_online: __('Online'),
-                            label_chatty: __('Chatty'),
+                            label_chatty: __('Chat'),
                             label_busy: __('Busy'),
                             label_away: __('Away'),
                             label_xa: __('Extended Away'),

+ 2 - 2
src/templates/roster.html

@@ -6,8 +6,8 @@
         <option value="">{{label_any}}</option>
         <option {[ if (chat_state === 'online') { ]} selected="selected" {[ } ]}
             value="online">{{label_online}}</option>
-        <option {[ if (chat_state === 'chatty') { ]} selected="selected" {[ } ]}
-            value="chatty">{{label_chatty}}</option>
+        <option {[ if (chat_state === 'chat') { ]} selected="selected" {[ } ]}
+            value="chat">{{label_chatty}}</option>
         <option {[ if (chat_state === 'dnd') { ]} selected="selected" {[ } ]}
             value="dnd">{{label_busy}}</option>
         <option {[ if (chat_state === 'away') { ]} selected="selected" {[ } ]}