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

Method getNewHighliteMsgsCount

src/main/java/Client/Contact.java:286–300  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

284 }
285
286 public int getNewHighliteMsgsCount() {
287 if (newHighLitedMsgCnt > 0) {
288 return newHighLitedMsgCnt;
289 }
290 int nm = 0;
291 if (getGroupType() != Groups.TYPE_IGNORE) {
292 for (Enumeration e = msgs.elements(); e.hasMoreElements();) {
293 Msg m = ((MessageItem) e.nextElement()).msg;
294 if (m.unread && m.highlite) {
295 nm++;
296 }
297 }
298 }
299 return newHighLitedMsgCnt = nm;
300 }
301
302 public boolean active() {
303 if (msgSuspended != null) {

Callers 2

countNewMsgsMethod · 0.95

Calls 2

getGroupTypeMethod · 0.95
elementsMethod · 0.80

Tested by

no test coverage detected