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

Method Quote

src/main/java/Client/ContactMessageList.java:749–771  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

747 }
748
749 public void Quote() {
750 if (!sd.roster.isLoggedIn()) return;
751 Msg message = getMessage(cursor);
752 String quotestring = (contact.origin == Contact.ORIGIN_GROUPCHAT && cf.showNickNames && !message.body.startsWith("*") && message.messageType != Msg.MESSAGE_TYPE_PRESENCE && message.subject != null) ?
753 message.from + "> " + Msg.clearNick(new StringBuffer(message.body)) :
754 message.quoteString(false);
755 int quoteMaxLen = contact.origin == Contact.ORIGIN_GROUPCHAT ?
756 100 : quotestring.length();
757 try {
758 String msg=new StringBuffer()
759 .append((char)0xbb) //
760 .append(" ")
761 .append((quotestring.length() > quoteMaxLen) ?
762 quotestring.substring(0, quoteMaxLen) + "..." :
763 quotestring)
764 .append("\n")
765 .append(" ")
766 .toString();
767 Roster.me = null;
768 Roster.me = new MessageEdit(this, contact, msg);
769 Roster.me.show();
770 } catch (Exception e) {/*no messages*/}
771 }
772
773//#ifdef HISTORY
774//#ifdef LAST_MESSAGES

Callers 3

menuActionMethod · 0.95
doKeyActionMethod · 0.95
doUserKeyActionMethod · 0.95

Calls 7

getMessageMethod · 0.95
clearNickMethod · 0.95
quoteStringMethod · 0.95
isLoggedInMethod · 0.80
appendMethod · 0.80
toStringMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected