mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-04 16:25:06 -05:00
trim message bodys on display
This commit is contained in:
parent
e1e09d5cba
commit
00b2e30938
@ -376,9 +376,9 @@ public class Message extends AbstractEntity {
|
||||
public String getMergedBody() {
|
||||
final Message next = this.next();
|
||||
if (this.mergeable(next)) {
|
||||
return getBody() + '\n' + next.getMergedBody();
|
||||
return getBody().trim() + '\n' + next.getMergedBody();
|
||||
}
|
||||
return getBody();
|
||||
return getBody().trim();
|
||||
}
|
||||
|
||||
public boolean hasMeCommand() {
|
||||
|
@ -154,7 +154,7 @@ public class UIHelper {
|
||||
return new Pair<>(message.getBody().replaceAll("^" + Message.ME_COMMAND,
|
||||
UIHelper.getMessageDisplayName(message) + " "), false);
|
||||
} else {
|
||||
return new Pair<>(message.getBody(), false);
|
||||
return new Pair<>(message.getBody().trim(), false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user