This commit is contained in:
Vitor Pamplona
2026-06-16 14:33:03 -04:00
3 changed files with 9 additions and 9 deletions
@@ -3651,7 +3651,8 @@ class Account(
} catch (e: Exception) {
Log.w(
"Account",
"Failed to restore persisted Marmot message for $groupId: ${e.message}",
"Failed to restore persisted Marmot message for $groupId",
e,
)
}
}
@@ -2276,20 +2276,18 @@ object LocalCache : ILocalCache, ICacheProvider {
// the wallet service we sent the request to. The pending
// entry is left in place so the real response can still
// resolve it; we silently drop this one.
Log.w(
"LocalCache",
Log.w("LocalCache") {
"Rejecting NWC response ${event.id}: expected author ${match.expected} but event was signed by ${match.actual}. " +
"This may be a spoofed reply — keeping the request pending for the legitimate wallet response.",
)
"This may be a spoofed reply — keeping the request pending for the legitimate wallet response."
}
return false
}
NwcPaymentTracker.MatchResult.NoMatch -> {
Log.w(
"LocalCache",
Log.w("LocalCache") {
"NWC response ${event.id} from ${event.pubKey} references request e=$requestId but no pending request is registered. " +
"The response was either delivered after timeout, the user holds a stale subscription, or the wallet service set the wrong e tag.",
)
"The response was either delivered after timeout, the user holds a stale subscription, or the wallet service set the wrong e tag."
}
return false
}
}
@@ -76,6 +76,7 @@ class CommunityPostApprovalEvent(
Log.w(
"CommunityPostEvent",
"Failed to Parse Community Approval Contained Post of $id with $content",
e,
)
null
}