-
Notifications
You must be signed in to change notification settings - Fork 137
Closed
Labels
Description
The reply_to_last functionality seems to have stopped working after the recent merge into master and release.
I was previously using the forked branch from Residently who implemented this feature. This feature and functionality worked before the forked branch was merged.
After upgrading my intercom-ruby client from their no longer available fork, calling the method has now begun throwing an error in my app.
I've downgraded to Residently's fork with Intercom 3.6.2 and the reply_to_last feature in my app is now working again.
Version info
- intercom-ruby version: intercom (3.7.0)
- Ruby version: ruby 2.5.3p105
Expected behavior
My expectation is that when I call reply_to_last on a collection of conversations then the client would post a comment to the last conversation of a particular user.
@intercom.conversations.reply_to_last(message_type: 'comment', user_id: '00000', type: 'user', body: "Hi ")
Actual behavior
NoMethodError: undefined method `reply_to_last' for #<Intercom::Service::Conversation:0x0000558f47398970>
Steps to reproduce
- Create a user in intercom
- Create a conversation for that user
- Initialize the intercom client
- Attempt to call the
reply_to_lastmethod on the user's conversations
Logs
[189] pry(main)>@intercom ||= Intercom::Client.new(token: key)
[190] pry(main)> @intercom.conversations.reply_to_last(message_type: 'comment', user_id: '00000', type: 'user', body: "Hi ")
NoMethodError: undefined method `reply_to_last' for #<Intercom::Service::Conversation:0x0000558f4f6f90a8>
from (pry):187:in `<main>