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
e425f257
Commit
e425f257
authored
Oct 13, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Listen for `xmpp:` URIs in all of Converse, not only chatrooms
updates #537
parent
9e47fff0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
13 deletions
+15
-13
dist/converse.js
dist/converse.js
+8
-7
src/converse-muc-views.js
src/converse-muc-views.js
+7
-6
No files found.
dist/converse.js
View file @
e425f257
...
...
@@ -68948,7 +68948,6 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
'click .hide-occupants': 'hideOccupants',
'click .new-msgs-indicator': 'viewUnreadMessages',
'click .occupant-nick': 'onOccupantClicked',
'click a.open-chatroom': 'openChatRoomFromURIClicked',
'click .send-button': 'onFormSubmitted',
'click .show-room-details-modal': 'showRoomDetailsModal',
'click .toggle-call': 'toggleCall',
...
...
@@ -69285,12 +69284,6 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
this.insertIntoTextArea(ev.target.textContent);
},
openChatRoomFromURIClicked(ev) {
ev.preventDefault();
_converse.api.rooms.open(ev.target.href);
},
handleChatStateNotification(message) {
/* Override the method on the ChatBoxView base class to
* ignore <gone/> notifications in groupchats.
...
...
@@ -70624,6 +70617,14 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
_converse.on('chatBoxViewsInitialized', () => {
function openChatRoomFromURIClicked(ev) {
ev.preventDefault();
_converse.api.rooms.open(ev.target.href);
}
_converse.chatboxviews.delegate('click', 'a.open-chatroom', openChatRoomFromURIClicked);
const that = _converse.chatboxviews;
_converse.chatboxes.on('add', item => {
src/converse-muc-views.js
View file @
e425f257
...
...
@@ -512,7 +512,6 @@
'
click .hide-occupants
'
:
'
hideOccupants
'
,
'
click .new-msgs-indicator
'
:
'
viewUnreadMessages
'
,
'
click .occupant-nick
'
:
'
onOccupantClicked
'
,
'
click a.open-chatroom
'
:
'
openChatRoomFromURIClicked
'
,
'
click .send-button
'
:
'
onFormSubmitted
'
,
'
click .show-room-details-modal
'
:
'
showRoomDetailsModal
'
,
'
click .toggle-call
'
:
'
toggleCall
'
,
...
...
@@ -814,11 +813,6 @@
this
.
insertIntoTextArea
(
ev
.
target
.
textContent
);
},
openChatRoomFromURIClicked
(
ev
)
{
ev
.
preventDefault
();
_converse
.
api
.
rooms
.
open
(
ev
.
target
.
href
);
},
handleChatStateNotification
(
message
)
{
/* Override the method on the ChatBoxView base class to
* ignore <gone/> notifications in groupchats.
...
...
@@ -2071,6 +2065,13 @@
/************************ BEGIN Event Handlers ************************/
_converse
.
on
(
'
chatBoxViewsInitialized
'
,
()
=>
{
function
openChatRoomFromURIClicked
(
ev
)
{
ev
.
preventDefault
();
_converse
.
api
.
rooms
.
open
(
ev
.
target
.
href
);
}
_converse
.
chatboxviews
.
delegate
(
'
click
'
,
'
a.open-chatroom
'
,
openChatRoomFromURIClicked
);
const
that
=
_converse
.
chatboxviews
;
_converse
.
chatboxes
.
on
(
'
add
'
,
item
=>
{
if
(
!
that
.
get
(
item
.
get
(
'
id
'
))
&&
item
.
get
(
'
type
'
)
===
_converse
.
CHATROOMS_TYPE
)
{
...
...
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