mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-09 08:04:45 +00:00
fix: use non-deprecated PersistentMap.putting()/removing() in RelayAuthenticator
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Myhus2x1c3BSWCtjenSmkf
This commit is contained in:
+1
-1
@@ -96,7 +96,7 @@ class RelayAuthenticator(
|
||||
private fun publishSnapshot(relayUrl: NormalizedRelayUrl) {
|
||||
val status = authStatus.get(relayUrl)
|
||||
_authStateFlow.update { current ->
|
||||
if (status == null) current.remove(relayUrl) else current.put(relayUrl, status.snapshot())
|
||||
if (status == null) current.removing(relayUrl) else current.putting(relayUrl, status.snapshot())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user