app/models/mailbox.rb in mailboxer-0.0.11 vs app/models/mailbox.rb in mailboxer-0.0.12

- old
+ new

@@ -73,16 +73,16 @@ def empty_trash(options = {}) return false end def has_conversation?(conversation) - return self.receipts.conversation(converstaion).count!=0 + return conversation.is_participant?(@messageable) end def is_trashed?(conversation) - return self.receipts.trash.conversation(conversation).count!=0 + return conversation.is_trashed?(@messageable) end def is_completely_trashed?(conversation) - return self.receipts.trash.conversation(conversation).count==self.receipts.conversation(conversation).count + return conversation.is_completely_trashed?(@messageable) end end