don't merge messages over the char limit
This commit is contained in:
parent
2c55954ddd
commit
c3ec3ea70a
|
@ -464,6 +464,7 @@ public class Message extends AbstractEntity {
|
||||||
this.getCounterpart().equals(message.getCounterpart()) &&
|
this.getCounterpart().equals(message.getCounterpart()) &&
|
||||||
this.edited() == message.edited() &&
|
this.edited() == message.edited() &&
|
||||||
(message.getTimeSent() - this.getTimeSent()) <= (Config.MESSAGE_MERGE_WINDOW * 1000) &&
|
(message.getTimeSent() - this.getTimeSent()) <= (Config.MESSAGE_MERGE_WINDOW * 1000) &&
|
||||||
|
this.getBody().length() + message.getBody().length() <= Config.MAX_DISPLAY_MESSAGE_CHARS &&
|
||||||
!GeoHelper.isGeoUri(message.getBody()) &&
|
!GeoHelper.isGeoUri(message.getBody()) &&
|
||||||
!GeoHelper.isGeoUri(this.body) &&
|
!GeoHelper.isGeoUri(this.body) &&
|
||||||
message.treatAsDownloadable() == Decision.NEVER &&
|
message.treatAsDownloadable() == Decision.NEVER &&
|
||||||
|
|
Loading…
Reference in a new issue