MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / belongsToTransport

Method belongsToTransport

src/main/java/xmpp/JidUtils.java:42–49  ·  view source on GitHub ↗
(Jid jid)

Source from the content-addressed store, hash-verified

40 }
41 // TODO: move to Roster
42 public static boolean belongsToTransport(Jid jid) {
43 Jid j = new Jid(jid.getServer());
44 Contact tr = StaticData.getInstance().roster.findContact(j, false);
45 if (tr != null) {
46 return j.equals(tr.jid, false);
47 }
48 return false;
49 }
50
51 public static String getTransport(Jid jid) {
52 try {

Callers 1

blockArrivedMethod · 0.95

Calls 4

getInstanceMethod · 0.95
equalsMethod · 0.95
getServerMethod · 0.80
findContactMethod · 0.80

Tested by

no test coverage detected