(Contact c)
| 116 | } |
| 117 | |
| 118 | public void addContact(Contact c) { |
| 119 | tncontacts++; |
| 120 | boolean online=c.status<Presence.PRESENCE_OFFLINE; |
| 121 | if (online) { |
| 122 | tonlines++; |
| 123 | } |
| 124 | // hide offlines whithout new messages |
| 125 | unreadMessages+=c.getNewMsgsCount(); |
| 126 | |
| 127 | if ( online || Config.getInstance().showOfflineContacts || c.getNewMsgsCount()>0 || type==Groups.TYPE_NOT_IN_LIST || type==Groups.TYPE_TRANSP || type==Groups.TYPE_VISIBLE || type==Groups.TYPE_SEARCH_RESULT || c.origin==Contact.ORIGIN_GROUPCHAT ) |
| 128 | contacts.addElement(c); |
| 129 | } |
| 130 | |
| 131 | void finishCount() { |
| 132 | //contacts=tcontacts; |
no test coverage detected