Feat: send fb message outside of standard messaging window (#4439)

This commit is contained in:
Tejaswini Chile
2022-04-19 12:21:20 +05:30
committed by GitHub
parent d2d838afd1
commit 1ccd29140d
6 changed files with 26 additions and 9 deletions

View File

@@ -489,7 +489,7 @@ RSpec.describe Conversation, type: :model do
let!(:conversation) { create(:conversation, inbox: facebook_inbox, account: facebook_channel.account) }
it 'returns false if there are no incoming messages' do
expect(conversation.can_reply?).to eq false
expect(conversation.can_reply?).to eq true
end
it 'return false if last incoming message is outside of 24 hour window' do
@@ -500,7 +500,7 @@ RSpec.describe Conversation, type: :model do
conversation: conversation,
created_at: Time.now - 25.hours
)
expect(conversation.can_reply?).to eq false
expect(conversation.can_reply?).to eq true
end
it 'return true if last incoming message is inside 24 hour window' do