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
bf3e6f23
Commit
bf3e6f23
authored
Apr 12, 2018
by
worlword
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some code-changes to align with the coding standard
parent
7660dbfb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
src/converse-chatboxes.js
src/converse-chatboxes.js
+1
-1
src/converse-chatview.js
src/converse-chatview.js
+3
-4
src/converse-muc-views.js
src/converse-muc-views.js
+1
-1
No files found.
src/converse-chatboxes.js
View file @
bf3e6f23
...
@@ -116,7 +116,7 @@
...
@@ -116,7 +116,7 @@
});
});
},
},
createFileMessageStanza
(
message
,
to
)
{
createFileMessageStanza
(
message
,
to
)
{
const
stanza
=
$msg
({
const
stanza
=
$msg
({
'
from
'
:
_converse
.
connection
.
jid
,
'
from
'
:
_converse
.
connection
.
jid
,
'
to
'
:
to
,
'
to
'
:
to
,
...
...
src/converse-chatview.js
View file @
bf3e6f23
...
@@ -255,7 +255,7 @@
...
@@ -255,7 +255,7 @@
'
click .toggle-smiley
'
:
'
toggleEmojiMenu
'
,
'
click .toggle-smiley
'
:
'
toggleEmojiMenu
'
,
'
click .toggle-spoiler
'
:
'
toggleSpoilerMessage
'
,
'
click .toggle-spoiler
'
:
'
toggleSpoilerMessage
'
,
'
click .toggle-compose-spoiler
'
:
'
toggleComposeSpoilerMessage
'
,
'
click .toggle-compose-spoiler
'
:
'
toggleComposeSpoilerMessage
'
,
'
keypress .chat-textarea
'
:
'
keyPressed
'
,
'
keypress .chat-textarea
'
:
'
keyPressed
'
},
},
initialize
()
{
initialize
()
{
...
@@ -829,7 +829,7 @@
...
@@ -829,7 +829,7 @@
// TODO: We might want to send to specfic resources.
// TODO: We might want to send to specfic resources.
// Especially in the OTR case.
// Especially in the OTR case.
var
messageStanza
;
var
messageStanza
;
if
(
file
!==
null
)
{
if
(
file
!==
null
)
{
messageStanza
=
this
.
createFileMessageStanza
(
message
,
this
.
model
.
get
(
'
jid
'
));
messageStanza
=
this
.
createFileMessageStanza
(
message
,
this
.
model
.
get
(
'
jid
'
));
}
}
else
{
else
{
...
@@ -845,7 +845,7 @@
...
@@ -845,7 +845,7 @@
'
xmns
'
:
Strophe
.
NS
.
DELAY
,
'
xmns
'
:
Strophe
.
NS
.
DELAY
,
'
stamp
'
:
moment
().
format
()
'
stamp
'
:
moment
().
format
()
}).
up
()
}).
up
()
.
cnode
(
message
.
tree
())
.
cnode
(
message
Stanza
.
tree
())
);
);
}
}
},
},
...
@@ -890,7 +890,6 @@
...
@@ -890,7 +890,6 @@
}
}
const
attrs
=
this
.
getOutgoingMessageAttributes
(
text
,
spoiler_hint
);
const
attrs
=
this
.
getOutgoingMessageAttributes
(
text
,
spoiler_hint
);
const
message
=
this
.
model
.
messages
.
create
(
attrs
);
const
message
=
this
.
model
.
messages
.
create
(
attrs
);
this
.
sendMessage
(
message
,
file
);
this
.
sendMessage
(
message
,
file
);
},
},
...
...
src/converse-muc-views.js
View file @
bf3e6f23
...
@@ -835,7 +835,7 @@
...
@@ -835,7 +835,7 @@
* Parameters:
* Parameters:
* (String) text - The message text.
* (String) text - The message text.
*/
*/
if
(
file
!==
null
)
{
if
(
file
!==
null
)
{
return
this
.
model
.
sendChatRoomFile
(
text
,
this
.
model
.
get
(
'
jid
'
));
return
this
.
model
.
sendChatRoomFile
(
text
,
this
.
model
.
get
(
'
jid
'
));
}
}
if
(
_converse
.
muc_disable_moderator_commands
)
{
if
(
_converse
.
muc_disable_moderator_commands
)
{
...
...
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