mirror of
https://github.com/lux-tel/session-ios.git
synced 2026-10-30 20:38:32 +00:00
• Refactored the MessageViewModel to be a dumb data types instead of a monolithic query • Refactored the ConversationViewModel due to handle the updated MessageViewModel • Refactored OWSAudioPlayer into Swift • Refactored the OpenGroupManager and OpenGroupManagerCache to be a single actor (CommunityManager), it also holds community state in memory • Removed a bunch of GRDB-specific relationship code (just makes things messy since we have raw SQL elsewhere) • Fixed a bug where the ObservationBuilder could incorrectly run queries in cancelled contexts resulting in potential buggy outputs • Fixed a bug where outgoing voice messages might not be able to be played
27 lines
1.1 KiB
Swift
27 lines
1.1 KiB
Swift
// Copyright © 2025 Rangeproof Pty Ltd. All rights reserved.
|
|
//
|
|
// stringlint:disable
|
|
|
|
import Foundation
|
|
import SessionUtilitiesKit
|
|
|
|
public extension Network {
|
|
enum SOGS {
|
|
public static let legacyDefaultServerIP = "116.203.70.33"
|
|
public static let defaultServer = "https://open.getsession.org"
|
|
public static let defaultServerPublicKey = "a03c383cf63c3c4efe67acc52112a6dd734b3a946b9545f488aaa93da7991238"
|
|
public static let defaultAuthMethod: AuthenticationMethod = Authentication.community(
|
|
roomToken: "",
|
|
server: defaultServer,
|
|
publicKey: defaultServerPublicKey,
|
|
hasCapabilities: false,
|
|
supportsBlinding: true,
|
|
forceBlinded: false
|
|
)
|
|
public static let validTimestampVarianceThreshold: TimeInterval = (6 * 60 * 60)
|
|
internal static let maxInactivityPeriodForPolling: TimeInterval = (14 * 24 * 60 * 60)
|
|
|
|
public static let workQueue = DispatchQueue(label: "SOGS.workQueue", qos: .userInitiated) // It's important that this is a serial queue
|
|
}
|
|
}
|