fix build, use keyPair in textnoteevent, check if loggedInWithAmber in newpostview
This commit is contained in:
@@ -880,8 +880,7 @@ class Account(
|
||||
root = root,
|
||||
directMentions = directMentions,
|
||||
geohash = geohash,
|
||||
pubKey = keyPair.pubKey.toHexKey(),
|
||||
privateKey = keyPair.privKey
|
||||
keyPair = keyPair
|
||||
)
|
||||
|
||||
if (!signEvent) {
|
||||
|
||||
@@ -30,6 +30,7 @@ import com.vitorpamplona.quartz.events.ReactionEvent
|
||||
import com.vitorpamplona.quartz.events.ReportEvent
|
||||
import com.vitorpamplona.quartz.events.RepostEvent
|
||||
import com.vitorpamplona.quartz.events.SealedGossipEvent
|
||||
import com.vitorpamplona.quartz.events.StatusEvent
|
||||
import com.vitorpamplona.quartz.events.TextNoteEvent
|
||||
|
||||
object NostrAccountDataSource : NostrDataSource("AccountData") {
|
||||
|
||||
@@ -234,8 +234,10 @@ fun NewPostView(
|
||||
PostButton(
|
||||
onPost = {
|
||||
scope.launch(Dispatchers.IO) {
|
||||
postViewModel.sendPost(relayList = relayList)
|
||||
onClose()
|
||||
event = postViewModel.sendPost(relayList = relayList, !accountViewModel.loggedInWithAmber())
|
||||
if (!accountViewModel.loggedInWithAmber()) {
|
||||
onClose()
|
||||
}
|
||||
}
|
||||
},
|
||||
isActive = postViewModel.canPost()
|
||||
|
||||
@@ -143,7 +143,7 @@ fun SignerDialog(
|
||||
verticalAlignment = Alignment.CenterVertically
|
||||
) {
|
||||
CloseButton(
|
||||
onCancel = {
|
||||
onPress = {
|
||||
onClose()
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user