Skip to content

Commit

Permalink
Fix spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
nmalzieu committed Aug 9, 2024
1 parent 3280a24 commit b2ea013
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions ios/XMTPModule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,20 @@ public class XMTPModule: Module {
}

// A method to disconnect all dbs
func dropAllLocalDatabaseConnections() throws {
for (_, client) in clients {
// Call the method on each client
try client.dropLocalDatabaseConnection()
}
}
// A method to disconnect all dbs
func reconnectAllLocalDatabaseConnections() async throws {
for (_, client) in clients {
// Call the method on each client
try await client.reconnectLocalDatabase()
}
}
func dropAllLocalDatabaseConnections() throws {
for (_, client) in clients {
// Call the method on each client
try client.dropLocalDatabaseConnection()
}
}

// A method to disconnect all dbs
func reconnectAllLocalDatabaseConnections() async throws {
for (_, client) in clients {
// Call the method on each client
try await client.reconnectLocalDatabase()
}
}
}

enum Error: Swift.Error {
Expand Down Expand Up @@ -1475,18 +1475,18 @@ public class XMTPModule: Module {
}
return await client.contacts.isGroupDenied(groupId: groupId)
}

OnAppBecomesActive {
Task {
try await clientsManager.reconnectAllLocalDatabaseConnections()
}
}

OnAppBecomesActive {
Task {
try await clientsManager.reconnectAllLocalDatabaseConnections()
}
}

OnAppEntersBackground {
Task {
try await clientsManager.dropAllLocalDatabaseConnections()
}
}
OnAppEntersBackground {
Task {
try await clientsManager.dropAllLocalDatabaseConnections()
}
}
}

//
Expand Down

0 comments on commit b2ea013

Please sign in to comment.