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
9cfec0ba
Commit
9cfec0ba
authored
Jun 21, 2016
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show requesting contacts at the top of the roster view.
parent
7f753040
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
docs/CHANGES.md
docs/CHANGES.md
+3
-2
spec/controlbox.js
spec/controlbox.js
+1
-1
src/converse-rosterview.js
src/converse-rosterview.js
+5
-5
No files found.
docs/CHANGES.md
View file @
9cfec0ba
...
...
@@ -3,6 +3,7 @@
## 1.0.4 (Unreleased)
-
Restrict occupants sidebar to 30% chatroom width. [jcbrand]
-
Made requesting contacts more visible, by placing them at the top of the roster. [jcbrand]
## 1.0.3 (2016-06-20)
...
...
@@ -15,9 +16,9 @@
-
Add processing hints to chat state notifications [jcbrand]
-
Don't use sound and desktop notifications for OTR messages (when setting up the session) [jcbrand]
-
New config option
[
default_state
](
https://conversejs.org/docs/html/configuration.html#default_state
)
[
jcbrand
]
-
New API method
`converse.rooms.close()`
-
New API method
`converse.rooms.close()`
[jcbrand]
-
New configuration setting
[
allow_muc_invites
](
https://conversejs.org/docs/html/configuration.html#allow-muc-invites
)
[
jcbrand
]
-
Add new event
[
pluginsInitialized
](
https://conversejs.org/docs/html/development.html#pluginsInitialized
)
-
Add new event
[
pluginsInitialized
](
https://conversejs.org/docs/html/development.html#pluginsInitialized
)
[
jcbrand
]
-
#553 Add processing hints to OTR messages [jcbrand]
-
#650 Don't ignore incoming messages with same JID as current user (might be MAM archived) [jcbrand]
-
#656 online users count in minimized chat window on initialization corrected [amanzur]
...
...
spec/controlbox.js
View file @
9cfec0ba
...
...
@@ -320,12 +320,12 @@
// requesting and pending contacts are last.
var
group_titles
=
$
.
map
(
this
.
rosterview
.
$el
.
find
(
'
dt
'
),
function
(
o
)
{
return
$
(
o
).
text
().
trim
();
});
expect
(
group_titles
).
toEqual
([
"
Contact requests
"
,
"
colleagues
"
,
"
Family
"
,
"
friends & acquaintences
"
,
"
ænemies
"
,
"
Ungrouped
"
,
"
Contact requests
"
,
"
Pending contacts
"
]);
// Check that usernames appear alphabetically per group
...
...
src/converse-rosterview.js
View file @
9cfec0ba
...
...
@@ -33,9 +33,9 @@
var
HEADER_REQUESTING_CONTACTS
=
__
(
'
Contact requests
'
);
var
HEADER_UNGROUPED
=
__
(
'
Ungrouped
'
);
var
HEADER_WEIGHTS
=
{};
HEADER_WEIGHTS
[
HEADER_
CURRENT_CONTACTS
]
=
0
;
HEADER_WEIGHTS
[
HEADER_
UNGROUPED
]
=
1
;
HEADER_WEIGHTS
[
HEADER_
REQUESTING_CONTACTS
]
=
2
;
HEADER_WEIGHTS
[
HEADER_
REQUESTING_CONTACTS
]
=
0
;
HEADER_WEIGHTS
[
HEADER_
CURRENT_CONTACTS
]
=
1
;
HEADER_WEIGHTS
[
HEADER_
UNGROUPED
]
=
2
;
HEADER_WEIGHTS
[
HEADER_PENDING_CONTACTS
]
=
3
;
converse_api
.
plugins
.
add
(
'
rosterview
'
,
{
...
...
@@ -69,9 +69,9 @@
}
else
if
(
a_is_special
&&
b_is_special
)
{
return
HEADER_WEIGHTS
[
a
]
<
HEADER_WEIGHTS
[
b
]
?
-
1
:
(
HEADER_WEIGHTS
[
a
]
>
HEADER_WEIGHTS
[
b
]
?
1
:
0
);
}
else
if
(
!
a_is_special
&&
b_is_special
)
{
return
(
b
===
HEADER_
CURRENT
_CONTACTS
)
?
1
:
-
1
;
return
(
b
===
HEADER_
REQUESTING
_CONTACTS
)
?
1
:
-
1
;
}
else
if
(
a_is_special
&&
!
b_is_special
)
{
return
(
a
===
HEADER_
CURRENT
_CONTACTS
)
?
-
1
:
1
;
return
(
a
===
HEADER_
REQUESTING
_CONTACTS
)
?
-
1
:
1
;
}
}
}
...
...
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