mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
541 B
Swift
16 lines
541 B
Swift
4 years ago
|
import PromiseKit
|
||
|
|
||
3 years ago
|
extension OpenGroupAPI {
|
||
4 years ago
|
|
||
|
@objc(deleteMessageWithServerID:fromRoom:onServer:)
|
||
|
public static func objc_deleteMessage(with serverID: Int64, from room: String, on server: String) -> AnyPromise {
|
||
3 years ago
|
// TODO: Upgrade this to use the non-legacy version.
|
||
3 years ago
|
return AnyPromise.from(legacyDeleteMessage(with: serverID, from: room, on: server))
|
||
4 years ago
|
}
|
||
4 years ago
|
|
||
3 years ago
|
@objc(legacyGetDefaultRoomsIfNeeded)
|
||
|
public static func objc_legacyGetDefaultRoomsIfNeeded() {
|
||
|
return legacyGetDefaultRoomsIfNeeded()
|
||
4 years ago
|
}
|
||
4 years ago
|
}
|