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

Method resolveNicknames

src/main/java/Client/Roster.java:1171–1190  ·  view source on GitHub ↗
(String transport)

Source from the content-addressed store, hash-verified

1169 private Vector vCardQueue;
1170
1171 public void resolveNicknames(String transport) {
1172 vCardQueue = null;
1173 vCardQueue = new Vector();
1174 synchronized (hContacts) {
1175 int j = hContacts.size();
1176 for (int i = 0; i < j; i++) {
1177 Contact k = (Contact) hContacts.elementAt(i);
1178 if (JidUtils.isTransport(k.jid)) {
1179 continue;
1180 }
1181 int grpType = k.getGroupType();
1182 if (k.jid.getServer().equals(transport) && k.nick == null && (grpType == Groups.TYPE_COMMON || grpType == Groups.TYPE_NO_GROUP)) {
1183 vCardQueue.addElement(IqVCard.query(k.getJid().toString(), "nickvc" + k.jid.getBare()));
1184 }
1185 }
1186 }
1187 setQuerySign(true);
1188 sendVCardReq();
1189
1190 }
1191
1192 public void sendVCardReq() {
1193 querysign = false;

Callers 1

doActionMethod · 0.80

Calls 12

isTransportMethod · 0.95
getGroupTypeMethod · 0.95
queryMethod · 0.95
getJidMethod · 0.95
setQuerySignMethod · 0.95
sendVCardReqMethod · 0.95
getServerMethod · 0.80
addElementMethod · 0.80
getBareMethod · 0.80
sizeMethod · 0.45
equalsMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected