view: basic req functionality.

This commit is contained in:
fiatjaf
2025-11-27 07:06:37 -03:00
parent eb6fdfdd39
commit 789c6a3884
3 changed files with 357 additions and 2 deletions

View File

@@ -1,7 +1,6 @@
package main
import (
"context"
"encoding/json"
"slices"
"strings"
@@ -63,7 +62,7 @@ func updateEvent() {
if currentKeyer != nil {
signAndFinalize := func() {
if currentKeyer != nil {
if err := currentKeyer.SignEvent(context.Background(), &result); err == nil {
if err := currentKeyer.SignEvent(ctx, &result); err == nil {
finalize()
} else {
statusLabel.SetText("failed to sign: " + err.Error())