diff --git a/.github/workflows/ReleaseNotes.md b/.github/workflows/ReleaseNotes.md index f1aa2d52..d0afced5 100644 --- a/.github/workflows/ReleaseNotes.md +++ b/.github/workflows/ReleaseNotes.md @@ -1,2 +1 @@ -* [Client] Fixed wrong TLS options handling (#1830). -* [Client] Fixed NullReferenceExeption when performing a Ping when the client is not connected (#1831). +* [Server] Fixed not working _UpdateRetainedMessageAsync_ public api (#1858, thanks to @kimdiego2098) diff --git a/Source/MQTTnet/Server/MqttServer.cs b/Source/MQTTnet/Server/MqttServer.cs index ff6c806e..a28f8256 100644 --- a/Source/MQTTnet/Server/MqttServer.cs +++ b/Source/MQTTnet/Server/MqttServer.cs @@ -362,7 +362,7 @@ namespace MQTTnet.Server ThrowIfDisposed(); ThrowIfNotStarted(); - return _retainedMessagesManager?.UpdateMessage(null, retainedMessage); + return _retainedMessagesManager?.UpdateMessage(string.Empty, retainedMessage); } protected override void Dispose(bool disposing) @@ -405,4 +405,4 @@ namespace MQTTnet.Server } } } -} \ No newline at end of file +}