From 66f754d1a8c4e4597f3dfb028b1cb4d8c4f51eb2 Mon Sep 17 00:00:00 2001 From: Darius Date: Fri, 27 Oct 2023 13:12:11 -0400 Subject: [PATCH] chore: Change return signature to remove bool --- extensions/warp-ipfs/src/store/message.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/extensions/warp-ipfs/src/store/message.rs b/extensions/warp-ipfs/src/store/message.rs index 685a213c3..fc14e0602 100644 --- a/extensions/warp-ipfs/src/store/message.rs +++ b/extensions/warp-ipfs/src/store/message.rs @@ -765,7 +765,7 @@ impl MessageStore { events: &MessagingEvents, direction: MessageDirection, opt: EventOpt, - ) -> Result { + ) -> Result<(), Error> { let tx = self.get_conversation_sender(conversation_id).await?; let mut document = self.conversations.get(conversation_id).await?; @@ -1003,7 +1003,7 @@ impl MessageStore { let event = match state { PinState::Pin => { if message.pinned() { - return Ok(false); + return Ok(()); } *message.pinned_mut() = true; MessageEventKind::MessagePinned { @@ -1013,7 +1013,7 @@ impl MessageStore { } PinState::Unpin => { if !message.pinned() { - return Ok(false); + return Ok(()); } *message.pinned_mut() = false; MessageEventKind::MessageUnpinned { @@ -1210,7 +1210,7 @@ impl MessageStore { } if let Some(current_name) = document.name() { if current_name.eq(&name) { - return Ok(false); + return Ok(()); } } @@ -1228,7 +1228,7 @@ impl MessageStore { } _ => {} } - Ok(false) + Ok(()) } async fn end_task(&self, conversation_id: Uuid) {