resetToWaiting should include http uploaded files

This commit is contained in:
Daniel Gultsch 2019-07-20 12:15:06 +02:00
parent f5be53d08a
commit c1589d76b5

View file

@ -285,7 +285,7 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
final ArrayList<Message> results = new ArrayList<>();
synchronized (this.messages) {
for (Message message : this.messages) {
if (message.getType() != Message.TYPE_IMAGE && message.getStatus() == Message.STATUS_UNSEND) {
if ((message.getType() == Message.TYPE_TEXT || message.hasFileOnRemoteHost()) && message.getStatus() == Message.STATUS_UNSEND) {
results.add(message);
}
}