Skip to content

Commit

Permalink
Adds Mutiny button
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorpamplona committed Sep 22, 2023
1 parent 82e2d15 commit bdc2cbb
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ object NostrAccountDataSource : NostrDataSource("AccountData") {
}

override fun consume(event: Event, relay: Relay) {
checkNotInMainThread()

if (LocalCache.justVerify(event)) {
if (event is GiftWrapEvent) {
val privateKey = account.keyPair.privKey
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,19 @@ fun UpdateZapAmountDialog(
Modifier.weight(1f)
)

/* TODO: Find a way to open this in the PWA
IconButton(onClick = {
onClose()
runCatching { uri.openUri("https://app.mutinywallet.com/settings/connections?callbackUri=nostr+walletconnect&name=Amethyst") }
}) {
Icon(
painter = painterResource(R.mipmap.mutiny),
null,
modifier = Modifier.size(24.dp),
tint = Color.Unspecified
)
}*/

IconButton(onClick = {
onClose()
runCatching { uri.openUri("https://nwc.getalby.com/apps/new?c=Amethyst") }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ open class LnZapFeedViewModel(val dataSource: FeedFilter<ZapReqResponse>) : View
checkNotInMainThread()

LocalCache.live.newEventBundles.collect { newNotes ->
checkNotInMainThread()

invalidateData()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ open class UserFeedViewModel(val dataSource: FeedFilter<User>) : ViewModel(), In
checkNotInMainThread()

LocalCache.live.newEventBundles.collect { newNotes ->
checkNotInMainThread()

invalidateData()
}
}
Expand Down
Binary file added app/src/main/res/mipmap-hdpi/mutiny.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/mipmap-mdpi/mutiny.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/mipmap-xhdpi/mutiny.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/mipmap-xxhdpi/mutiny.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/mipmap-xxxhdpi/mutiny.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bdc2cbb

Please sign in to comment.