Skip to content

Commit

Permalink
chore: Disable conversation limits
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusc93 committed Oct 23, 2023
1 parent d0d614d commit ac0dbef
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions extensions/warp-ipfs/src/store/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1642,9 +1642,9 @@ impl MessageStore {
}

//Temporary limit
if self.list_conversations().await.unwrap_or_default().len() >= 32 {
return Err(Error::ConversationLimitReached);
}
// if self.list_conversations().await.unwrap_or_default().len() >= 256 {
// return Err(Error::ConversationLimitReached);
// }

if !self.discovery.contains(did_key).await {
self.discovery.insert(did_key).await?;
Expand Down Expand Up @@ -1753,9 +1753,9 @@ impl MessageStore {
}

//Temporary limit
if self.list_conversations().await.unwrap_or_default().len() >= 32 {
return Err(Error::ConversationLimitReached);
}
// if self.list_conversations().await.unwrap_or_default().len() >= 256 {
// return Err(Error::ConversationLimitReached);
// }

for recipient in &recipients {
if !self.discovery.contains(recipient).await {
Expand Down

0 comments on commit ac0dbef

Please sign in to comment.