()
| 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 |
no test coverage detected