-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to revoke installations (#391)
* add revokaction ability and inbox state * write a test for it * get the test passing * update the resolved
- Loading branch information
1 parent
0896eea
commit 2b3e409
Showing
6 changed files
with
98 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// | ||
// InboxState.swift | ||
// | ||
// | ||
// Created by Naomi Plasterer on 8/21/24. | ||
// | ||
|
||
import Foundation | ||
import LibXMTP | ||
|
||
public struct InboxState { | ||
var ffiInboxState: FfiInboxState | ||
|
||
init(ffiInboxState: FfiInboxState) { | ||
self.ffiInboxState = ffiInboxState | ||
} | ||
|
||
public var inboxId: String { | ||
ffiInboxState.inboxId | ||
} | ||
|
||
public var addresses: [String] { | ||
ffiInboxState.accountAddresses | ||
} | ||
|
||
public var installationIds: [String] { | ||
ffiInboxState.installationIds.map { $0.toHex } | ||
} | ||
|
||
public var recoveryAddress: String { | ||
ffiInboxState.recoveryAddress | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters