mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
3baeb981d9
Moved the JobRunner into SessionUtilitiesKit so it can be used by SessionSnodeKit Exposed a 'sharedLokiProject' value on UserDefaults to remove the hard-coded group name used everywhere Added "blocking" job support for 'OnLaunch' and 'OnActive' jobs to the JobRunner (will retry until it succeeds) Added the UpdateProfilePicture and RetrieveDefaultOpenGroupRooms jobs
15 lines
544 B
Swift
15 lines
544 B
Swift
import PromiseKit
|
|
|
|
extension OpenGroupAPIV2 {
|
|
|
|
@objc(deleteMessageWithServerID:fromRoom:onServer:)
|
|
public static func objc_deleteMessage(with serverID: Int64, from room: String, on server: String) -> AnyPromise {
|
|
return AnyPromise.from(deleteMessage(with: serverID, from: room, on: server))
|
|
}
|
|
|
|
@objc(isUserModerator:forRoom:onServer:)
|
|
public static func objc_isUserModerator(_ publicKey: String, for room: String, on server: String) -> Bool {
|
|
return isUserModerator(publicKey, for: room, on: server)
|
|
}
|
|
}
|