JSHint bitching about wrapped or statements
This commit is contained in:
parent
6ea9d1771e
commit
fadbf2d159
@ -3228,12 +3228,9 @@
|
|||||||
|
|
||||||
showInRoster: function () {
|
showInRoster: function () {
|
||||||
var chatStatus = this.get('chat_status');
|
var chatStatus = this.get('chat_status');
|
||||||
if ((converse.show_only_online_users && chatStatus !== 'online')
|
if ((converse.show_only_online_users && chatStatus !== 'online') || (converse.hide_offline_users && chatStatus === 'offline')) {
|
||||||
|| (converse.hide_offline_users && chatStatus === 'offline')) {
|
|
||||||
// If pending or requesting, show
|
// If pending or requesting, show
|
||||||
if ((this.get('ask') === 'subscribe')
|
if ((this.get('ask') === 'subscribe') || (this.get('subscription') === 'from') || (this.get('requesting') === true)) {
|
||||||
|| (this.get('subscription') === 'from')
|
|
||||||
|| (this.get('requesting') === true)) {
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user