From d36aafb7b601f26f839b71ba3327bcdd7ada34b0 Mon Sep 17 00:00:00 2001 From: sacOO7 Date: Tue, 21 May 2024 18:00:16 +0530 Subject: [PATCH] Updated implementation for has_message_serial --- lib/ably/models/protocol_message.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/ably/models/protocol_message.rb b/lib/ably/models/protocol_message.rb index 9b97228f..ab877e59 100644 --- a/lib/ably/models/protocol_message.rb +++ b/lib/ably/models/protocol_message.rb @@ -133,9 +133,7 @@ def count # @api private def has_message_serial? - message_serial && true - rescue TypeError - false + not Ably::Util::String::is_null_or_empty(message_serial) end # @api private