mirror of
https://github.com/lux-tel/session-ios.git
synced 2026-10-30 20:38:32 +00:00
• Wired up the dev settings • Update logic to use an ed25519 key for the FileServer instead of an x25519 one • Updated the ReuploadUserDisplayPictureJob to wait for the first poll to succeed before running (to reduce config conflict issues) • Fixed a bug with the FileServer extend API call
17 lines
409 B
Swift
17 lines
409 B
Swift
// Copyright © 2025 Rangeproof Pty Ltd. All rights reserved.
|
|
|
|
import Foundation
|
|
|
|
public extension AsyncStream {
|
|
static func singleValue(value: Element) -> AsyncStream<Element> {
|
|
var hasEmittedValue: Bool = false
|
|
|
|
return AsyncStream(unfolding: {
|
|
guard !hasEmittedValue else { return nil }
|
|
|
|
hasEmittedValue = true
|
|
return value
|
|
})
|
|
}
|
|
}
|