Prevent double pEp text

pull/194/head
M66B 4 years ago
parent f571d270bd
commit ad54c353c2

@ -98,6 +98,12 @@ public interface DaoAttachment {
" AND (NOT (error IS :error) OR progress IS NOT NULL OR NOT (available IS 0))")
void setError(long id, String error);
@Query("UPDATE attachment" +
" SET type = :type" +
" WHERE id = :id" +
" AND NOT (type IS :type)")
void setType(long id, String type);
@Query("UPDATE attachment" +
" SET disposition = :disposition" +
" WHERE id = :id" +

@ -6983,6 +6983,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
}
Helper.writeText(message.getFile(context), html);
db.attachment().setType(remote.id, "application/octet-stream");
}
}

Loading…
Cancel
Save