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
619d970f
Commit
619d970f
authored
May 27, 2016
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Scroll down on <subject> messages.
Also, don't call scrollDown unnecessarily in showStatusMessages
parent
032fe0d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
src/converse-muc.js
src/converse-muc.js
+15
-8
No files found.
src/converse-muc.js
View file @
619d970f
...
...
@@ -778,7 +778,9 @@
for
(
i
=
0
;
i
<
reasons
.
length
;
i
++
)
{
this
.
showStatusNotification
(
__
(
'
The reason given is: "
'
+
reasons
[
i
]
+
'
"
'
),
true
);
}
this
.
scrollDown
();
if
(
disconnect_msgs
.
length
||
msgs
.
length
||
reasons
.
length
)
{
this
.
scrollDown
();
}
return
el
;
},
...
...
@@ -830,6 +832,17 @@
this
.
occupantsview
.
updateOccupantsOnPresence
(
pres
);
},
setChatRoomSubject
:
function
(
sender
,
subject
)
{
this
.
$el
.
find
(
'
.chatroom-topic
'
).
text
(
subject
).
attr
(
'
title
'
,
subject
);
// For translators: the %1$s and %2$s parts will get replaced by the user and topic text respectively
// Example: Topic set by JC Brand to: Hello World!
this
.
$content
.
append
(
converse
.
templates
.
info
({
'
message
'
:
__
(
'
Topic set by %1$s to: %2$s
'
,
sender
,
subject
)
}));
this
.
scrollDown
();
},
onChatRoomMessage
:
function
(
message
)
{
var
$message
=
$
(
message
),
$forwarded
=
$message
.
find
(
'
forwarded
'
),
...
...
@@ -854,13 +867,7 @@
return
true
;
}
if
(
subject
)
{
this
.
$el
.
find
(
'
.chatroom-topic
'
).
text
(
subject
).
attr
(
'
title
'
,
subject
);
// For translators: the %1$s and %2$s parts will get replaced by the user and topic text respectively
// Example: Topic set by JC Brand to: Hello World!
this
.
$content
.
append
(
converse
.
templates
.
info
({
'
message
'
:
__
(
'
Topic set by %1$s to: %2$s
'
,
sender
,
subject
)
}));
this
.
setChatRoomSubject
(
sender
,
subject
);
}
if
(
sender
===
''
)
{
return
true
;
...
...
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