Fix a potential bug where the token couldn't be refreshed when the cached server /versions had expired. (#4687)
* Update SDK mocks for UniFFI 0.30.0
* Update the SDK.
* Update the SDK again
Includes a temporary workaround that patches the SDK's generated Swift files so that our tests don't crash:
3f0075fb8a
This commit is contained in:
@@ -21,7 +21,7 @@ class HomeScreenRoomTests: XCTestCase {
|
||||
unreadNotificationsCount: UInt,
|
||||
notificationMode: RoomNotificationModeProxy,
|
||||
hasOngoingCall: Bool) {
|
||||
roomSummary = RoomSummary(room: .init(noPointer: .init()),
|
||||
roomSummary = RoomSummary(room: .init(noHandle: .init()),
|
||||
id: "Test room",
|
||||
joinRequestType: nil,
|
||||
name: "Test room",
|
||||
|
||||
@@ -71,7 +71,7 @@ class LoggingTests: XCTestCase {
|
||||
let roomName = "Private Conversation"
|
||||
let lastMessage = "Secret information"
|
||||
let heroName = "Pseudonym"
|
||||
let roomSummary = RoomSummary(room: .init(noPointer: .init()),
|
||||
let roomSummary = RoomSummary(room: .init(noHandle: .init()),
|
||||
id: "myroomid",
|
||||
joinRequestType: nil,
|
||||
name: roomName,
|
||||
@@ -224,19 +224,19 @@ class LoggingTests: XCTestCase {
|
||||
let rustImageMessage = ImageMessageContent(filename: "ImageString",
|
||||
caption: "ImageString",
|
||||
formattedCaption: nil,
|
||||
source: MediaSource(noPointer: .init()),
|
||||
source: MediaSource(noHandle: .init()),
|
||||
info: nil)
|
||||
|
||||
let rustVideoMessage = VideoMessageContent(filename: "VideoString",
|
||||
caption: "VideoString",
|
||||
formattedCaption: nil,
|
||||
source: MediaSource(noPointer: .init()),
|
||||
source: MediaSource(noHandle: .init()),
|
||||
info: nil)
|
||||
|
||||
let rustFileMessage = FileMessageContent(filename: "FileString",
|
||||
caption: "FileString",
|
||||
formattedCaption: nil,
|
||||
source: MediaSource(noPointer: .init()),
|
||||
source: MediaSource(noHandle: .init()),
|
||||
info: nil)
|
||||
|
||||
// When logging that value
|
||||
|
||||
@@ -15,7 +15,7 @@ import XCTest
|
||||
class MessageForwardingScreenViewModelTests: XCTestCase {
|
||||
let forwardingItem = MessageForwardingItem(id: .event(uniqueID: .init("t1"), eventOrTransactionID: .eventID("t1")),
|
||||
roomID: "1",
|
||||
content: .init(noPointer: .init()))
|
||||
content: .init(noHandle: .init()))
|
||||
var viewModel: MessageForwardingScreenViewModelProtocol!
|
||||
var context: MessageForwardingScreenViewModelType.Context!
|
||||
var cancellables = Set<AnyCancellable>()
|
||||
|
||||
@@ -106,7 +106,7 @@ final class RoomSummaryProviderTests: XCTestCase {
|
||||
dynamicAdaptersResult.controllerReturnValue = dynamicEntriesController
|
||||
roomList = RoomListSDKMock()
|
||||
roomList.entriesWithDynamicAdaptersWithPageSizeEnableLatestEventSorterListenerReturnValue = dynamicAdaptersResult
|
||||
roomList.loadingStateListenerReturnValue = .some(.init(state: .notLoaded, stateStream: .init(noPointer: .init())))
|
||||
roomList.loadingStateListenerReturnValue = .some(.init(state: .notLoaded, stateStream: .init(noHandle: .init())))
|
||||
roomSummaryProvider.setRoomList(roomList)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ class RoomSummaryTests: XCTestCase {
|
||||
// MARK: - Helpers
|
||||
|
||||
func makeSummary(isDirect: Bool, isSpace: Bool, hasRoomAvatar: Bool, isTombstoned: Bool) -> RoomSummary {
|
||||
RoomSummary(room: .init(noPointer: .init()),
|
||||
RoomSummary(room: .init(noHandle: .init()),
|
||||
id: roomDetails.id,
|
||||
joinRequestType: nil,
|
||||
name: roomDetails.name,
|
||||
|
||||
Reference in New Issue
Block a user