Removed an incorrect dependency and fixed a bug from the last commit

pull/592/head
Morgan Pretty 3 years ago
parent 65f14cf0a1
commit 96338eacda

@ -981,13 +981,6 @@
remoteGlobalIDString = C3C2A678255388CC00C340D1; remoteGlobalIDString = C3C2A678255388CC00C340D1;
remoteInfo = SessionUtilitiesKit; remoteInfo = SessionUtilitiesKit;
}; };
FDC4386E27B4E90300C60D73 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = D221A080169C9E5E00537ABF /* Project object */;
proxyType = 1;
remoteGlobalIDString = C3C2A678255388CC00C340D1;
remoteInfo = SessionUtilitiesKit;
};
FDC4389327B9FFC700C60D73 /* PBXContainerItemProxy */ = { FDC4389327B9FFC700C60D73 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy; isa = PBXContainerItemProxy;
containerPortal = D221A080169C9E5E00537ABF /* Project object */; containerPortal = D221A080169C9E5E00537ABF /* Project object */;
@ -995,13 +988,6 @@
remoteGlobalIDString = C3C2A6EF25539DE700C340D1; remoteGlobalIDString = C3C2A6EF25539DE700C340D1;
remoteInfo = SessionMessagingKit; remoteInfo = SessionMessagingKit;
}; };
FDC438A027BA2B8A00C60D73 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = D221A080169C9E5E00537ABF /* Project object */;
proxyType = 1;
remoteGlobalIDString = C3C2A678255388CC00C340D1;
remoteInfo = SessionUtilitiesKit;
};
/* End PBXContainerItemProxy section */ /* End PBXContainerItemProxy section */
/* Begin PBXCopyFilesBuildPhase section */ /* Begin PBXCopyFilesBuildPhase section */
@ -4343,8 +4329,6 @@
buildRules = ( buildRules = (
); );
dependencies = ( dependencies = (
FDC4386F27B4E90300C60D73 /* PBXTargetDependency */,
FDC438A127BA2B8A00C60D73 /* PBXTargetDependency */,
); );
name = SessionMessagingKit; name = SessionMessagingKit;
productName = SessionMessagingKit; productName = SessionMessagingKit;
@ -5734,23 +5718,12 @@
target = C3C2A678255388CC00C340D1 /* SessionUtilitiesKit */; target = C3C2A678255388CC00C340D1 /* SessionUtilitiesKit */;
targetProxy = FD83B9B427CF200A005E1583 /* PBXContainerItemProxy */; targetProxy = FD83B9B427CF200A005E1583 /* PBXContainerItemProxy */;
}; };
FDC4386F27B4E90300C60D73 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = C3C2A678255388CC00C340D1 /* SessionUtilitiesKit */;
targetProxy = FDC4386E27B4E90300C60D73 /* PBXContainerItemProxy */;
};
FDC4389427B9FFC700C60D73 /* PBXTargetDependency */ = { FDC4389427B9FFC700C60D73 /* PBXTargetDependency */ = {
isa = PBXTargetDependency; isa = PBXTargetDependency;
platformFilter = ios; platformFilter = ios;
target = C3C2A6EF25539DE700C340D1 /* SessionMessagingKit */; target = C3C2A6EF25539DE700C340D1 /* SessionMessagingKit */;
targetProxy = FDC4389327B9FFC700C60D73 /* PBXContainerItemProxy */; targetProxy = FDC4389327B9FFC700C60D73 /* PBXContainerItemProxy */;
}; };
FDC438A127BA2B8A00C60D73 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
platformFilter = ios;
target = C3C2A678255388CC00C340D1 /* SessionUtilitiesKit */;
targetProxy = FDC438A027BA2B8A00C60D73 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */ /* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */ /* Begin PBXVariantGroup section */

@ -476,7 +476,7 @@ public final class OpenGroupManager: NSObject {
/// This method specifies if the given publicKey is a moderator or an admin within a specified Open Group /// This method specifies if the given publicKey is a moderator or an admin within a specified Open Group
@objc(isUserModeratorOrAdmin:forRoom:onServer:) @objc(isUserModeratorOrAdmin:forRoom:onServer:)
public static func isUserModeratorOrAdmin(_ publicKey: String, for room: String, on server: String) -> Bool { public static func isUserModeratorOrAdmin(_ publicKey: String, for room: String, on server: String) -> Bool {
return isUserModeratorOrAdmin(publicKey, for: room, on: server) return isUserModeratorOrAdmin(publicKey, for: room, on: server, using: Dependencies())
} }
public static func isUserModeratorOrAdmin(_ publicKey: String, for room: String, on server: String, using dependencies: Dependencies = Dependencies()) -> Bool { public static func isUserModeratorOrAdmin(_ publicKey: String, for room: String, on server: String, using dependencies: Dependencies = Dependencies()) -> Bool {

Loading…
Cancel
Save