mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-28 11:42:15 -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() {
|
public String getMergedBody() {
|
||||||
final Message next = this.next();
|
final Message next = this.next();
|
||||||
if (this.mergeable(next)) {
|
if (this.mergeable(next)) {
|
||||||
return getBody() + '\n' + next.getMergedBody();
|
return getBody().trim() + '\n' + next.getMergedBody();
|
||||||
}
|
}
|
||||||
return getBody();
|
return getBody().trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasMeCommand() {
|
public boolean hasMeCommand() {
|
||||||
|
@ -154,7 +154,7 @@ public class UIHelper {
|
|||||||
return new Pair<>(message.getBody().replaceAll("^" + Message.ME_COMMAND,
|
return new Pair<>(message.getBody().replaceAll("^" + Message.ME_COMMAND,
|
||||||
UIHelper.getMessageDisplayName(message) + " "), false);
|
UIHelper.getMessageDisplayName(message) + " "), false);
|
||||||
} else {
|
} else {
|
||||||
return new Pair<>(message.getBody(), false);
|
return new Pair<>(message.getBody().trim(), false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user