mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-17 15:09:31 +02:00
MESSENGER-5413 other hotspots
This commit is contained in:
@@ -106,7 +106,7 @@ extension UserSessionInfo {
|
||||
name: "Element Mobile: iOS",
|
||||
deviceType: .mobile,
|
||||
verificationState: verificationState,
|
||||
lastSeenIP: "1.0.0.1",
|
||||
lastSeenIP: "1.0.0.1", //NOSONAR mocking ip for testing
|
||||
lastSeenTimestamp: hasTimestamp ? Date().timeIntervalSince1970 : nil,
|
||||
applicationName: "Element iOS",
|
||||
applicationVersion: "1.9.14",
|
||||
|
||||
@@ -146,7 +146,7 @@ struct UserSessionCardViewPreview: View {
|
||||
name: "iOS",
|
||||
deviceType: .mobile,
|
||||
verificationState: verificationState,
|
||||
lastSeenIP: "10.0.0.10",
|
||||
lastSeenIP: "10.0.0.10", //NOSONAR mocking ip for testing
|
||||
lastSeenTimestamp: nil,
|
||||
applicationName: "Element iOS",
|
||||
applicationVersion: "1.0.0",
|
||||
|
||||
@@ -90,7 +90,7 @@ enum MockUserOtherSessionsScreenState: MockScreenState, CaseIterable {
|
||||
name: "iOS",
|
||||
deviceType: .mobile,
|
||||
verificationState: .unverified,
|
||||
lastSeenIP: "10.0.0.10",
|
||||
lastSeenIP: "10.0.0.10", //NOSONAR mocking ip for testing
|
||||
lastSeenTimestamp: nil,
|
||||
applicationName: nil,
|
||||
applicationVersion: nil,
|
||||
@@ -106,7 +106,7 @@ enum MockUserOtherSessionsScreenState: MockScreenState, CaseIterable {
|
||||
name: "macOS",
|
||||
deviceType: .desktop,
|
||||
verificationState: .verified,
|
||||
lastSeenIP: "1.0.0.1",
|
||||
lastSeenIP: "1.0.0.1", //NOSONAR mocking ip for testing
|
||||
lastSeenTimestamp: Date().timeIntervalSince1970 - 8_000_000,
|
||||
applicationName: nil,
|
||||
applicationVersion: nil,
|
||||
@@ -122,7 +122,7 @@ enum MockUserOtherSessionsScreenState: MockScreenState, CaseIterable {
|
||||
name: "Firefox on Windows",
|
||||
deviceType: .web,
|
||||
verificationState: .verified,
|
||||
lastSeenIP: "2.0.0.2",
|
||||
lastSeenIP: "2.0.0.2", //NOSONAR mocking ip for testing
|
||||
lastSeenTimestamp: Date().timeIntervalSince1970 - 9_000_000,
|
||||
applicationName: nil,
|
||||
applicationVersion: nil,
|
||||
@@ -138,7 +138,7 @@ enum MockUserOtherSessionsScreenState: MockScreenState, CaseIterable {
|
||||
name: "Android",
|
||||
deviceType: .mobile,
|
||||
verificationState: .unverified,
|
||||
lastSeenIP: "3.0.0.3",
|
||||
lastSeenIP: "3.0.0.3", //NOSONAR mocking ip for testing
|
||||
lastSeenTimestamp: Date().timeIntervalSince1970 - 10_000_000,
|
||||
applicationName: nil,
|
||||
applicationVersion: nil,
|
||||
@@ -157,7 +157,7 @@ enum MockUserOtherSessionsScreenState: MockScreenState, CaseIterable {
|
||||
name: "iOS",
|
||||
deviceType: .mobile,
|
||||
verificationState: .unverified,
|
||||
lastSeenIP: "10.0.0.10",
|
||||
lastSeenIP: "10.0.0.10", //NOSONAR mocking ip for testing
|
||||
lastSeenTimestamp: nil,
|
||||
applicationName: nil,
|
||||
applicationVersion: nil,
|
||||
@@ -173,7 +173,7 @@ enum MockUserOtherSessionsScreenState: MockScreenState, CaseIterable {
|
||||
name: "macOS",
|
||||
deviceType: .desktop,
|
||||
verificationState: .unverified,
|
||||
lastSeenIP: "1.0.0.1",
|
||||
lastSeenIP: "1.0.0.1", //NOSONAR mocking ip for testing
|
||||
lastSeenTimestamp: Date().timeIntervalSince1970 - 8_000_000,
|
||||
applicationName: nil,
|
||||
applicationVersion: nil,
|
||||
@@ -192,7 +192,7 @@ enum MockUserOtherSessionsScreenState: MockScreenState, CaseIterable {
|
||||
name: "iOS",
|
||||
deviceType: .mobile,
|
||||
verificationState: .verified,
|
||||
lastSeenIP: "10.0.0.10",
|
||||
lastSeenIP: "10.0.0.10", //NOSONAR mocking ip for testing
|
||||
lastSeenTimestamp: nil,
|
||||
applicationName: nil,
|
||||
applicationVersion: nil,
|
||||
@@ -208,7 +208,7 @@ enum MockUserOtherSessionsScreenState: MockScreenState, CaseIterable {
|
||||
name: "macOS",
|
||||
deviceType: .desktop,
|
||||
verificationState: .verified,
|
||||
lastSeenIP: "1.0.0.1",
|
||||
lastSeenIP: "1.0.0.1", //NOSONAR mocking ip for testing
|
||||
lastSeenTimestamp: Date().timeIntervalSince1970 - 8_000_000,
|
||||
applicationName: nil,
|
||||
applicationVersion: nil,
|
||||
@@ -227,7 +227,7 @@ enum MockUserOtherSessionsScreenState: MockScreenState, CaseIterable {
|
||||
name: "iOS",
|
||||
deviceType: .mobile,
|
||||
verificationState: .unverified,
|
||||
lastSeenIP: "10.0.0.10",
|
||||
lastSeenIP: "10.0.0.10", //NOSONAR mocking ip for testing
|
||||
lastSeenTimestamp: Date().timeIntervalSince1970 - 500_000,
|
||||
applicationName: nil,
|
||||
applicationVersion: nil,
|
||||
@@ -243,7 +243,7 @@ enum MockUserOtherSessionsScreenState: MockScreenState, CaseIterable {
|
||||
name: "macOS",
|
||||
deviceType: .desktop,
|
||||
verificationState: .verified,
|
||||
lastSeenIP: "1.0.0.1",
|
||||
lastSeenIP: "1.0.0.1", //NOSONAR mocking ip for testing
|
||||
lastSeenTimestamp: Date().timeIntervalSince1970 - 8_000_000,
|
||||
applicationName: nil,
|
||||
applicationVersion: nil,
|
||||
@@ -259,7 +259,7 @@ enum MockUserOtherSessionsScreenState: MockScreenState, CaseIterable {
|
||||
name: "Firefox on Windows",
|
||||
deviceType: .web,
|
||||
verificationState: .verified,
|
||||
lastSeenIP: "2.0.0.2",
|
||||
lastSeenIP: "2.0.0.2", //NOSONAR mocking ip for testing
|
||||
lastSeenTimestamp: Date().timeIntervalSince1970 - 9_000_000,
|
||||
applicationName: nil,
|
||||
applicationVersion: nil,
|
||||
@@ -275,7 +275,7 @@ enum MockUserOtherSessionsScreenState: MockScreenState, CaseIterable {
|
||||
name: "Android",
|
||||
deviceType: .mobile,
|
||||
verificationState: .unverified,
|
||||
lastSeenIP: "3.0.0.3",
|
||||
lastSeenIP: "3.0.0.3", //NOSONAR mocking ip for testing
|
||||
lastSeenTimestamp: Date().timeIntervalSince1970 - 10_000_000,
|
||||
applicationName: nil,
|
||||
applicationVersion: nil,
|
||||
@@ -291,7 +291,7 @@ enum MockUserOtherSessionsScreenState: MockScreenState, CaseIterable {
|
||||
name: "iOS",
|
||||
deviceType: .mobile,
|
||||
verificationState: .unverified,
|
||||
lastSeenIP: "10.0.0.10",
|
||||
lastSeenIP: "10.0.0.10", //NOSONAR mocking ip for testing
|
||||
lastSeenTimestamp: Date().timeIntervalSince1970 - 11_000_000,
|
||||
applicationName: nil,
|
||||
applicationVersion: nil,
|
||||
@@ -307,7 +307,7 @@ enum MockUserOtherSessionsScreenState: MockScreenState, CaseIterable {
|
||||
name: "macOS",
|
||||
deviceType: .desktop,
|
||||
verificationState: .verified,
|
||||
lastSeenIP: "1.0.0.1",
|
||||
lastSeenIP: "1.0.0.1", //NOSONAR mocking ip for testing
|
||||
lastSeenTimestamp: Date().timeIntervalSince1970 - 20_000_000,
|
||||
applicationName: nil,
|
||||
applicationVersion: nil,
|
||||
|
||||
@@ -377,7 +377,7 @@ class UserOtherSessionsViewModelTests: XCTestCase {
|
||||
name: "iOS",
|
||||
deviceType: .mobile,
|
||||
verificationState: verificationState,
|
||||
lastSeenIP: "10.0.0.10",
|
||||
lastSeenIP: "10.0.0.10", //NOSONAR mocking ip for testing
|
||||
lastSeenTimestamp: Date().timeIntervalSince1970 - 100,
|
||||
applicationName: nil,
|
||||
applicationVersion: nil,
|
||||
|
||||
@@ -45,7 +45,7 @@ enum MockUserSessionDetailsScreenState: MockScreenState, CaseIterable {
|
||||
name: "iOS",
|
||||
deviceType: .mobile,
|
||||
verificationState: .unverified,
|
||||
lastSeenIP: "10.0.0.10",
|
||||
lastSeenIP: "10.0.0.10", //NOSONAR mocking ip for testing
|
||||
lastSeenTimestamp: nil,
|
||||
applicationName: "Element iOS",
|
||||
applicationVersion: "1.0.0",
|
||||
|
||||
@@ -55,7 +55,7 @@ enum MockUserSessionOverviewScreenState: MockScreenState, CaseIterable {
|
||||
name: "iOS",
|
||||
deviceType: .mobile,
|
||||
verificationState: state,
|
||||
lastSeenIP: "10.0.0.10",
|
||||
lastSeenIP: "10.0.0.10", //NOSONAR mocking ip for testing
|
||||
lastSeenTimestamp: nil,
|
||||
applicationName: "Element iOS",
|
||||
applicationVersion: "1.0.0",
|
||||
@@ -73,7 +73,7 @@ enum MockUserSessionOverviewScreenState: MockScreenState, CaseIterable {
|
||||
name: "macOS",
|
||||
deviceType: .desktop,
|
||||
verificationState: state,
|
||||
lastSeenIP: "1.0.0.1",
|
||||
lastSeenIP: "1.0.0.1", //NOSONAR mocking ip for testing
|
||||
lastSeenTimestamp: Date().timeIntervalSince1970 - 130_000,
|
||||
applicationName: "Element MacOS",
|
||||
applicationVersion: "1.0.0",
|
||||
@@ -91,7 +91,7 @@ enum MockUserSessionOverviewScreenState: MockScreenState, CaseIterable {
|
||||
name: "macOS",
|
||||
deviceType: .desktop,
|
||||
verificationState: .verified,
|
||||
lastSeenIP: "1.0.0.1",
|
||||
lastSeenIP: "1.0.0.1", //NOSONAR mocking ip for testing
|
||||
lastSeenTimestamp: Date().timeIntervalSince1970 - 130_000,
|
||||
applicationName: "Element MacOS",
|
||||
applicationVersion: "1.0.0",
|
||||
@@ -109,7 +109,7 @@ enum MockUserSessionOverviewScreenState: MockScreenState, CaseIterable {
|
||||
name: "macOS",
|
||||
deviceType: .desktop,
|
||||
verificationState: .verified,
|
||||
lastSeenIP: "1.0.0.1",
|
||||
lastSeenIP: "1.0.0.1", //NOSONAR mocking ip for testing
|
||||
lastSeenTimestamp: Date().timeIntervalSince1970 - 130_000,
|
||||
applicationName: "Element MacOS",
|
||||
applicationVersion: "1.0.0",
|
||||
|
||||
@@ -90,7 +90,7 @@ class UserSessionOverviewViewModelTests: XCTestCase {
|
||||
name: "iOS",
|
||||
deviceType: .mobile,
|
||||
verificationState: .unverified,
|
||||
lastSeenIP: "10.0.0.10",
|
||||
lastSeenIP: "10.0.0.10", //NOSONAR mocking ip for testing
|
||||
lastSeenTimestamp: Date().timeIntervalSince1970 - 100,
|
||||
applicationName: "Element iOS",
|
||||
applicationVersion: "1.9.7",
|
||||
|
||||
@@ -87,7 +87,7 @@ class MockUserSessionsOverviewService: UserSessionsOverviewServiceProtocol {
|
||||
name: "iOS",
|
||||
deviceType: .mobile,
|
||||
verificationState: mode == .currentSessionVerified ? .verified : .unverified,
|
||||
lastSeenIP: "10.0.0.10",
|
||||
lastSeenIP: "10.0.0.10", //NOSONAR mocking ip for testing
|
||||
lastSeenTimestamp: nil,
|
||||
applicationName: "Element iOS",
|
||||
applicationVersion: "1.0.0",
|
||||
@@ -106,7 +106,7 @@ class MockUserSessionsOverviewService: UserSessionsOverviewServiceProtocol {
|
||||
name: "macOS verified: \(verified) active: \(active)",
|
||||
deviceType: .desktop,
|
||||
verificationState: verified ? .verified : .unverified,
|
||||
lastSeenIP: "1.0.0.1",
|
||||
lastSeenIP: "1.0.0.1", //NOSONAR mocking ip for testing
|
||||
lastSeenTimestamp: Date().timeIntervalSince1970 - 8_000_000,
|
||||
applicationName: "Element MacOS",
|
||||
applicationVersion: "1.0.0",
|
||||
@@ -122,7 +122,7 @@ class MockUserSessionsOverviewService: UserSessionsOverviewServiceProtocol {
|
||||
name: "Firefox on Windows verified: \(verified) active: \(active)",
|
||||
deviceType: .web,
|
||||
verificationState: verified ? .verified : .unverified,
|
||||
lastSeenIP: "2.0.0.2",
|
||||
lastSeenIP: "2.0.0.2", //NOSONAR mocking ip for testing
|
||||
lastSeenTimestamp: Date().timeIntervalSince1970 - 100,
|
||||
applicationName: "Element Web",
|
||||
applicationVersion: "1.0.0",
|
||||
@@ -138,7 +138,7 @@ class MockUserSessionsOverviewService: UserSessionsOverviewServiceProtocol {
|
||||
name: "Android verified: \(verified) active: \(active)",
|
||||
deviceType: .mobile,
|
||||
verificationState: verified ? .verified : .unverified,
|
||||
lastSeenIP: "3.0.0.3",
|
||||
lastSeenIP: "3.0.0.3", //NOSONAR mocking ip for testing
|
||||
lastSeenTimestamp: Date().timeIntervalSince1970 - 10,
|
||||
applicationName: "Element Android",
|
||||
applicationVersion: "1.0.0",
|
||||
|
||||
Reference in New Issue
Block a user