瀏覽代碼

Rename 'enable_message_carbons' to 'message_carbons'

JC Brand 11 年之前
父節點
當前提交
df374d3d3e

文件差異過大導致無法顯示
+ 0 - 0
builds/converse-no-locales-no-otr.min.js


文件差異過大導致無法顯示
+ 0 - 0
builds/converse-no-otr.min.js


文件差異過大導致無法顯示
+ 0 - 0
builds/converse.min.js


文件差異過大導致無法顯示
+ 0 - 0
builds/converse.website.min.js


+ 3 - 3
converse.js

@@ -146,7 +146,7 @@
         this.cache_otr_key = false;
         this.cache_otr_key = false;
         this.debug = false;
         this.debug = false;
         this.default_box_height = 324; // The default height, in pixels, for the control box, chat boxes and chatrooms.
         this.default_box_height = 324; // The default height, in pixels, for the control box, chat boxes and chatrooms.
-        this.enable_message_carbons = false;
+        this.message_carbons = false;
         this.expose_rid_and_sid = false;
         this.expose_rid_and_sid = false;
         this.forward_messages = false;
         this.forward_messages = false;
         this.hide_muc_server = false;
         this.hide_muc_server = false;
@@ -184,7 +184,7 @@
             'connection',
             'connection',
             'debug',
             'debug',
             'default_box_height',
             'default_box_height',
-            'enable_message_carbons',
+            'message_carbons',
             'expose_rid_and_sid',
             'expose_rid_and_sid',
             'forward_messages',
             'forward_messages',
             'fullname',
             'fullname',
@@ -544,7 +544,7 @@
             /* Ask the XMPP server to enable Message Carbons
             /* Ask the XMPP server to enable Message Carbons
              * See XEP-0280 https://xmpp.org/extensions/xep-0280.html#enabling
              * See XEP-0280 https://xmpp.org/extensions/xep-0280.html#enabling
              */
              */
-            if (!this.enable_message_carbons) {
+            if (!this.message_carbons) {
                 return;
                 return;
             }
             }
             var carbons_iq = new Strophe.Builder('iq', {
             var carbons_iq = new Strophe.Builder('iq', {

+ 1 - 1
docs/CHANGES.rst

@@ -24,7 +24,7 @@ Changelog
 * #123 Show converse.js in the resource assigned to a user. [jcbrand]
 * #123 Show converse.js in the resource assigned to a user. [jcbrand]
 * #130 Fixed bootstrap conflicts. [jcbrand]
 * #130 Fixed bootstrap conflicts. [jcbrand]
 * #132 Support for `XEP-0280: Message Carbons <https://xmpp.org/extensions/xep-0280.html'>`_.
 * #132 Support for `XEP-0280: Message Carbons <https://xmpp.org/extensions/xep-0280.html'>`_.
-  Configured via `enable_message_carbons <https://conversejs.org/docs/html/index.html#enable_message_carbons>`_ [hejazee]
+  Configured via `message_carbons <https://conversejs.org/docs/html/index.html#message_carbons>`_ [hejazee]
 * #176 Add support for caching in sessionStorage as opposed to localStorage. [jcbrand]
 * #176 Add support for caching in sessionStorage as opposed to localStorage. [jcbrand]
 * #180 RID and SID undefined [g8g3]
 * #180 RID and SID undefined [g8g3]
 * #191 No messages history [heban]
 * #191 No messages history [heban]

二進制
docs/doctrees/index.doctree


+ 1 - 1
docs/html/_sources/index.txt

@@ -918,7 +918,7 @@ Default:  ``false``
 
 
 If set to true, debugging output will be logged to the browser console.
 If set to true, debugging output will be logged to the browser console.
 
 
-enable_message_carbons
+message_carbons
 ----------------------
 ----------------------
 
 
 Default:  ``false``
 Default:  ``false``

+ 2 - 2
docs/html/index.html

@@ -128,7 +128,7 @@
 <li><a class="reference internal" href="#bosh-service-url" id="id45">bosh_service_url</a></li>
 <li><a class="reference internal" href="#bosh-service-url" id="id45">bosh_service_url</a></li>
 <li><a class="reference internal" href="#cache-otr-key" id="id46">cache_otr_key</a></li>
 <li><a class="reference internal" href="#cache-otr-key" id="id46">cache_otr_key</a></li>
 <li><a class="reference internal" href="#debug" id="id47">debug</a></li>
 <li><a class="reference internal" href="#debug" id="id47">debug</a></li>
-<li><a class="reference internal" href="#enable-message-carbons" id="id48">enable_message_carbons</a></li>
+<li><a class="reference internal" href="#enable-message-carbons" id="id48">message_carbons</a></li>
 <li><a class="reference internal" href="#expose-rid-and-sid" id="id49">expose_rid_and_sid</a></li>
 <li><a class="reference internal" href="#expose-rid-and-sid" id="id49">expose_rid_and_sid</a></li>
 <li><a class="reference internal" href="#forward-messages" id="id50">forward_messages</a></li>
 <li><a class="reference internal" href="#forward-messages" id="id50">forward_messages</a></li>
 <li><a class="reference internal" href="#fullname" id="id51">fullname</a></li>
 <li><a class="reference internal" href="#fullname" id="id51">fullname</a></li>
@@ -905,7 +905,7 @@ current session. Previous sessions however cannot be decrypted.</p>
 <p>If set to true, debugging output will be logged to the browser console.</p>
 <p>If set to true, debugging output will be logged to the browser console.</p>
 </div>
 </div>
 <div class="section" id="enable-message-carbons">
 <div class="section" id="enable-message-carbons">
-<h3><a class="toc-backref" href="#id48">enable_message_carbons</a><a class="headerlink" href="#enable-message-carbons" title="Permalink to this headline">¶</a></h3>
+<h3><a class="toc-backref" href="#id48">message_carbons</a><a class="headerlink" href="#enable-message-carbons" title="Permalink to this headline">¶</a></h3>
 <p>Default:  <tt class="docutils literal"><span class="pre">false</span></tt></p>
 <p>Default:  <tt class="docutils literal"><span class="pre">false</span></tt></p>
 <p>Support for <a class="reference external" href="https://xmpp.org/extensions/xep-0280.html">XEP-0280: Message Carbons</a></p>
 <p>Support for <a class="reference external" href="https://xmpp.org/extensions/xep-0280.html">XEP-0280: Message Carbons</a></p>
 </div>
 </div>

+ 1 - 1
docs/source/index.rst

@@ -924,7 +924,7 @@ Default:  ``false``
 
 
 If set to true, debugging output will be logged to the browser console.
 If set to true, debugging output will be logged to the browser console.
 
 
-enable_message_carbons
+message_carbons
 ----------------------
 ----------------------
 
 
 Default:  ``false``
 Default:  ``false``

部分文件因文件數量過多而無法顯示