mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
dbead5e3c8
Added a few types to make the code more readable Added the inbox request to the polling Added a couple of properties to the TSContactThread to indicate the originating open group to support SOGS DMs Added code to store the latest message id for an open group inbox Added a bunch of documentation from the API docs into the OpenGroupAPI (and associated models) Updated the OpenGroupAPI to match the latest docs Fixed the incorrect structure of the SendDirectMessageRequest Fixed an incorrect inbox endpoint path Tweaked the batch response handling so it wouldn't fail to parse all responses if a single one failed Renamed IdPrefix to SessionId.Prefix and cleaned up the type to be more readable & self-documenting
21 lines
778 B
Swift
21 lines
778 B
Swift
// Copyright © 2022 Rangeproof Pty Ltd. All rights reserved.
|
|
|
|
import Foundation
|
|
|
|
extension OpenGroupAPI {
|
|
struct UserUnbanRequest: Codable {
|
|
/// List of one or more room tokens from which the user should be banned (the invoking user must be a `moderator`
|
|
/// of all of the given rooms
|
|
///
|
|
/// This may be set to the single-element list ["*"] to ban the user from all rooms in which the invoking user has `moderator`
|
|
/// permissions (the call will succeed if the calling user is a moderator in at least one channel)
|
|
///
|
|
/// Exclusive of `global`
|
|
let rooms: [String]?
|
|
|
|
/// If true then remove a server-wide global ban
|
|
///
|
|
/// Exclusive of rooms
|
|
let global: Bool?
|
|
}
|
|
}
|