session-ios/SessionMessagingKit/Open Groups/OpenGroupAPI+ObjC.swift
Morgan Pretty b655882cbd Started resolving TODOs
Added some new properties to the OpenGroupV2
Moved a number of methods and variables from OpenGroupAPI to OpenGroupManager (anything doing actual logic)
Moved the message signing into the OpenGroupAPI (since that's the only place it happens)
Renamed remaining old model classes to start with 'Legacy' to make clean up easier
Updated the OpenGroupAPI poll method to use the same logic as it previously did to determine if it should retrieve recent messages or messages since the last one
2022-02-16 10:31:08 +11:00

16 lines
541 B
Swift

import PromiseKit
extension OpenGroupAPI {
@objc(deleteMessageWithServerID:fromRoom:onServer:)
public static func objc_deleteMessage(with serverID: Int64, from room: String, on server: String) -> AnyPromise {
// TODO: Upgrade this to use the non-legacy version.
return AnyPromise.from(legacyDeleteMessage(with: serverID, from: room, on: server))
}
@objc(legacyGetDefaultRoomsIfNeeded)
public static func objc_legacyGetDefaultRoomsIfNeeded() {
return legacyGetDefaultRoomsIfNeeded()
}
}