Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
94c135a6
Commit
94c135a6
authored
Feb 12, 2014
by
JC Brand
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'otr-by-default' of
git://github.com/Aupajo/converse.js
into Apajo-otr-by-default
Conflicts: converse.js Fixes #102
parents
18d6a918
201004f8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
+16
-2
converse.js
converse.js
+7
-2
docs/CHANGES.rst
docs/CHANGES.rst
+1
-0
docs/source/index.rst
docs/source/index.rst
+8
-0
No files found.
converse.js
View file @
94c135a6
...
...
@@ -147,6 +147,7 @@
this
.
show_call_button
=
false
;
this
.
show_emoticons
=
true
;
this
.
show_toolbar
=
true
;
this
.
use_otr_by_default
=
false
;
this
.
use_vcards
=
true
;
this
.
xhr_custom_status
=
false
;
this
.
xhr_custom_status_url
=
''
;
...
...
@@ -179,6 +180,7 @@
'
show_only_online_users
'
,
'
show_toolbar
'
,
'
sid
'
,
'
use_otr_by_default
'
,
'
use_vcards
'
,
'
xhr_custom_status
'
,
'
xhr_custom_status_url
'
,
...
...
@@ -189,6 +191,9 @@
// Only allow OTR if we have the capability
this
.
allow_otr
=
this
.
allow_otr
&&
HAS_CRYPTO
;
// Only use OTR by default if allow OTR is enabled to begin with
this
.
use_otr_by_default
=
this
.
use_otr_by_default
&&
this
.
allow_otr
;
// Translation machinery
// ---------------------
var
__
=
$
.
proxy
(
function
(
str
)
{
...
...
@@ -928,11 +933,11 @@
this
.
updateVCard
();
this
.
$el
.
appendTo
(
converse
.
chatboxesview
.
$el
);
this
.
render
().
show
().
model
.
messages
.
fetch
({
add
:
true
});
if
(
this
.
model
.
get
(
'
status
'
))
{
this
.
showStatusMessage
(
this
.
model
.
get
(
'
status
'
));
}
if
(
_
.
contains
([
UNVERIFIED
,
VERIFIED
],
this
.
model
.
get
(
'
otr_status
'
)))
{
if
((
_
.
contains
([
UNVERIFIED
,
VERIFIED
],
this
.
model
.
get
(
'
otr_status
'
)))
||
converse
.
use_otr_by_default
)
{
this
.
model
.
initiateOTR
();
}
},
...
...
docs/CHANGES.rst
View file @
94c135a6
...
...
@@ -5,6 +5,7 @@ Unreleased
----------
* #93 Add API methods exposing the RID and SID values. Can be disabled. [jcbrand]
* #102 Option to enable OTR by default. [Aupajo]
* #103 Option to display a call button in the chatbox toolbar, to allow third-party libraries to provide a calling feature. [Aupajo]
* #108 Japanese Translations [mako09]
* #111 OTR not working when using converse.js with prebinding. [jseidl, jcbrand]
...
...
docs/source/index.rst
View file @
94c135a6
...
...
@@ -896,6 +896,14 @@ Default = ``false``
If set to ``true``, only online users will be shown in the contacts roster.
Users with any other status (e.g. away, busy etc.) will not be shown.
use_otr_by_default
------------------
Default = ``false``
If set to ``true``, Converse.js will automatically try to initiate an OTR (off-the-record)
encrypted chat session every time you open a chat box.
use_vcards
----------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment