Add showDecryptedContentInNotifications property to MXKAccount
MODIFY
MatrixKit/Models/Account/MXKAccount.h
MatrixKit/Models/Account/MXKAccount.h
@@ -167,6 +167,12 @@ typedef BOOL (^MXKAccountOnCertificateChange)(MXKAccount *mxAccount, NSData *cer
*/
@property (nonatomic,getter=isWarnedAboutEncryption) BOOL warnedAboutEncryption;
+/**
+ Flag indicating whether to show decrypted content in notifications.
+ NO by default
+ */
+@property (nonatomic) BOOL showDecryptedContentInNotifications;
+
/**
Register the MXKAccountOnCertificateChange block that will be used to handle certificate change during account use.
This block is nil by default, any new certificate is ignored/untrusted (this will abort the connection to the server).

MODIFY
MatrixKit/Models/Account/MXKAccount.m
MatrixKit/Models/Account/MXKAccount.m
@@ -196,6 +196,8 @@ static MXKAccountOnCertificateChange _onCertificateChangeBlock;
_warnedAboutEncryption = [coder decodeBoolForKey:@"warnedAboutEncryption"];
+ _showDecryptedContentInNotifications = [coder decodeBoolForKey:@"showDecryptedContentInNotifications"];
+
// Refresh device information
[self loadDeviceInformation:nil failure:nil];
}
@@ -245,6 +247,8 @@ static MXKAccountOnCertificateChange _onCertificateChangeBlock;
[coder encodeBool:_disabled forKey:@"disabled"];
[coder encodeBool:_warnedAboutEncryption forKey:@"warnedAboutEncryption"];
+
+ [coder encodeBool:_showDecryptedContentInNotifications forKey:@"showDecryptedContentInNotifications"];
}
#pragma mark - Properties

Add showDecryptedContentInNotifications property to MXKAccount