Create and use method in MessagingManager for checking for image support

This commit is contained in:
Torsten Grote
2018-12-18 13:01:26 -02:00
committed by akwizgran
parent f73f8ca7e7
commit ad71d69149
3 changed files with 23 additions and 11 deletions

View File

@@ -248,4 +248,13 @@ class MessagingManagerImpl extends ConversationClientImpl
return new Attachment(new ByteArrayInputStream(bytes));
}
@Override
public boolean contactSupportsImages(Transaction txn, ContactId c)
throws DbException {
int minorVersion = clientVersioningManager
.getClientMinorVersion(txn, c, CLIENT_ID, 0);
// support was added in 0.1
return minorVersion == 1;
}
}