JC Brand 2 лет назад
Родитель
Сommit
0489e0f902
1 измененных файлов с 0 добавлено и 5 удалено
  1. 0 5
      src/headless/plugins/roster/contacts.js

+ 0 - 5
src/headless/plugins/roster/contacts.js

@@ -187,11 +187,6 @@ const RosterContacts = Collection.extend({
         }
     },
 
-    getNumOnlineContacts () {
-        const ignored = ['offline', 'unavailable'];
-        return sum(this.models.filter(m => !ignored.includes(m.presence.get('show'))));
-    },
-
     /**
      * Handle roster updates from the XMPP server.
      * See: https://xmpp.org/rfcs/rfc6121.html#roster-syntax-actions-push