Skip to content

Commit

Permalink
Revert "Add branding flag for default group to plaintext or "best""
Browse files Browse the repository at this point in the history
This reverts commit fd52a70.
  • Loading branch information
N-Pex committed Jun 28, 2018
1 parent 4c08fb8 commit 186c0d1
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 17 deletions.
3 changes: 1 addition & 2 deletions ChatSecure/Classes/Model/Yap Storage/OTRXMPPRoom.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import UIKit
import YapDatabase.YapDatabaseRelationship
import OTRAssets

@objc public enum RoomSecurity: Int {
/// will choose omemo if _any_ occupants have available keys
Expand All @@ -35,7 +34,7 @@ import OTRAssets
/// JID of the room itself
@objc private var jid:String?

@objc open var preferredSecurity: RoomSecurity = OTRBranding.defaultGroupPlaintext ? .plaintext : .best
@objc open var preferredSecurity: RoomSecurity = .best

/// XMPPJID of the room itself
@objc public var roomJID: XMPPJID? {
Expand Down
3 changes: 0 additions & 3 deletions OTRAssets/OTRBranding.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,5 @@ FOUNDATION_EXPORT NSString *const kOTRSettingKeyLanguage;
/** If enabled, will allow OMEMO functionality within the app. Defaults to YES if setting key is not present. */
@property (class, readonly) BOOL allowOMEMO;

/** If enabled, will enter groups in plaintext mode. Defaults to NO if setting key is not present, which will result in setting transport security to "best". */
@property (class, readonly) BOOL defaultGroupPlaintext;

@end
NS_ASSUME_NONNULL_END
10 changes: 0 additions & 10 deletions OTRAssets/OTRBranding.m
Original file line number Diff line number Diff line change
Expand Up @@ -168,16 +168,6 @@ + (BOOL) allowOMEMO {
}
}

+ (BOOL) defaultGroupPlaintext {
NSNumber *result = [[self defaultPlist] objectForKey:@"DefaultGroupPlaintext"];
if (!result) {
return NO;
} else {
return result.boolValue;
}
}


/** Returns true if we're running the official ChatSecure */
+ (BOOL) matchesUpstream {
return [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.chrisballinger.ChatSecure"];
Expand Down
2 changes: 0 additions & 2 deletions OTRResources/Branding.plist
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,5 @@
<false/>
<key>AllowOMEMO</key>
<true/>
<key>DefaultGroupPlaintext</key>
<false/>
</dict>
</plist>

0 comments on commit 186c0d1

Please sign in to comment.