sort combined typing users by name so order is stable
This commit is contained in:
parent
25aa58f29f
commit
86357fde51
1 changed files with 3 additions and 0 deletions
|
@ -191,6 +191,9 @@ module.exports = React.createClass({
|
||||||
// but have a timeout timer running so they can disappear
|
// but have a timeout timer running so they can disappear
|
||||||
// when a message comes in
|
// when a message comes in
|
||||||
usersTyping = usersTyping.concat(stoppedUsersOnTimer);
|
usersTyping = usersTyping.concat(stoppedUsersOnTimer);
|
||||||
|
// sort them so the typing members don't change order when
|
||||||
|
// moved to delayedStopTypingTimers
|
||||||
|
usersTyping.sort((a, b) => a.name.localeCompare(b.name));
|
||||||
|
|
||||||
const typingString = WhoIsTyping.whoIsTypingString(
|
const typingString = WhoIsTyping.whoIsTypingString(
|
||||||
usersTyping,
|
usersTyping,
|
||||||
|
|
Loading…
Reference in a new issue