diff options
author | Michael <betheg@bitcloner.org> | 2015-01-25 16:29:26 +0100 |
---|---|---|
committer | Michael <betheg@bitcloner.org> | 2015-01-25 16:58:06 +0100 |
commit | 29331e49b9fa97949e14f2a326b26c69a4ca3022 (patch) | |
tree | f9a9721c4ef037bc4c4d70a19cd2374b51ae9991 /src/main/java/eu/siacs/conversations/utils/UIHelper.java | |
parent | 90d06d38d6a405b88d768703a52e1fa18cadfbd3 (diff) |
fix mergable() for /me command.
Diffstat (limited to 'src/main/java/eu/siacs/conversations/utils/UIHelper.java')
-rw-r--r-- | src/main/java/eu/siacs/conversations/utils/UIHelper.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/eu/siacs/conversations/utils/UIHelper.java b/src/main/java/eu/siacs/conversations/utils/UIHelper.java index 32227ff8f..ffb9390f9 100644 --- a/src/main/java/eu/siacs/conversations/utils/UIHelper.java +++ b/src/main/java/eu/siacs/conversations/utils/UIHelper.java @@ -150,8 +150,9 @@ public class UIHelper { return new Pair<>(getFileDescriptionString(context,message),true); } } else { - if (message.getBody().startsWith("/me ")) { - return new Pair<>(message.getBody().replaceAll("^/me ",UIHelper.getMessageDisplayName(message) + " "),false); + if (message.getBody().startsWith(Message.ME_COMMAND)) { + return new Pair<>(message.getBody().replaceAll("^" + Message.ME_COMMAND, + UIHelper.getMessageDisplayName(message) + " "), false); } else { return new Pair<>(message.getBody(), false); } |