if setAvatar to null, dont check blocked media
Phillip Davis
created
codepath is deleteAvatar, which is setAvatar(from, null)
Change summary
src/main/java/eu/siacs/conversations/services/XmppConnectionService.java | 3
1 file changed, 2 insertions(+), 1 deletion(-)
Detailed changes
@@ -509,7 +509,8 @@ public class XmppConnectionService extends Service {
return databaseBackend.isBlockedMedia(cid);
}
- public boolean isBlockedMediaSha1(final String sha1sum) {
+ public boolean isBlockedMediaSha1(@Nullable final String sha1sum) {
+ if (sha1sum == null) return false;
try {
return isBlockedMedia(CryptoHelper.cid(CryptoHelper.hexToBytes(sha1sum), "sha-1"));
} catch (final NoSuchAlgorithmException e) {