MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / addContact

Method addContact

src/main/java/Client/Group.java:118–129  ·  view source on GitHub ↗
(Contact c)

Source from the content-addressed store, hash-verified

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;

Callers 2

runMethod · 0.95
SearchResultMethod · 0.45

Calls 3

getInstanceMethod · 0.95
getNewMsgsCountMethod · 0.80
addElementMethod · 0.80

Tested by

no test coverage detected