@ -170,10 +170,6 @@ public class SmsDatabase extends Database implements MmsSmsColumns {
updateTypeBitmask ( id , 0 , Types . KEY_EXCHANGE_INVALID_VERSION_BIT ) ;
}
public void markAsLegacyVersion ( long id ) {
updateTypeBitmask ( id , 0 , Types . LEGACY_MESSAGE_BIT ) ;
}
public void markAsSecure ( long id ) {
updateTypeBitmask ( id , 0 , Types . SECURE_MESSAGE_BIT ) ;
}
@ -206,6 +202,10 @@ public class SmsDatabase extends Database implements MmsSmsColumns {
updateTypeBitmask ( id , Types . ENCRYPTION_MASK , Types . ENCRYPTION_REMOTE_BIT ) ;
}
public void markAsLegacyVersion ( long id ) {
updateTypeBitmask ( id , Types . ENCRYPTION_MASK , Types . ENCRYPTION_REMOTE_LEGACY_BIT ) ;
}
public void markAsOutbox ( long id ) {
updateTypeBitmask ( id , Types . BASE_TYPE_MASK , Types . BASE_OUTBOX_TYPE ) ;
}
@ -280,7 +280,7 @@ public class SmsDatabase extends Database implements MmsSmsColumns {
else if ( ( ( IncomingKeyExchangeMessage ) message ) . isCorrupted ( ) ) type | = Types . KEY_EXCHANGE_CORRUPTED_BIT ;
else if ( ( ( IncomingKeyExchangeMessage ) message ) . isInvalidVersion ( ) ) type | = Types . KEY_EXCHANGE_INVALID_VERSION_BIT ;
else if ( ( ( IncomingKeyExchangeMessage ) message ) . isIdentityUpdate ( ) ) type | = Types . KEY_EXCHANGE_IDENTITY_UPDATE_BIT ;
else if ( ( ( IncomingKeyExchangeMessage ) message ) . isLegacyVersion ( ) ) type | = Types . LEGACY_MESSAGE _BIT;
else if ( ( ( IncomingKeyExchangeMessage ) message ) . isLegacyVersion ( ) ) type | = Types . ENCRYPTION_REMOTE_LEGACY _BIT;
else if ( ( ( IncomingKeyExchangeMessage ) message ) . isPreKeyBundle ( ) ) type | = Types . KEY_EXCHANGE_BUNDLE_BIT ;
} else if ( message . isSecureMessage ( ) ) {
type | = Types . SECURE_MESSAGE_BIT ;