Skip to content

reply_to_last from Residently now returns error after being merged into master #445

@Chadh13

Description

@Chadh13

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

  1. Create a user in intercom
  2. Create a conversation for that user
  3. Initialize the intercom client
  4. Attempt to call the reply_to_last method 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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions