mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-19 17:37:43 +00:00
bugfix: NIP-20 says duplicate messages should return written = true
This commit is contained in:
@ -41,6 +41,7 @@ void RelayServer::runWriter(ThreadPool<MsgWriter>::Thread &thr) {
|
||||
written = true;
|
||||
} else if (newEvent.status == EventWriteStatus::Duplicate) {
|
||||
message = "duplicate: have this event";
|
||||
written = true;
|
||||
} else if (newEvent.status == EventWriteStatus::Replaced) {
|
||||
message = "replaced: have newer event";
|
||||
} else if (newEvent.status == EventWriteStatus::Deleted) {
|
||||
|
Reference in New Issue
Block a user