Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Lita::Room.find_by_id can't find private room if created after connect #107

Open
crunis opened this issue Oct 5, 2016 · 0 comments
Open
Labels

Comments

@crunis
Copy link

crunis commented Oct 5, 2016

Steps to reproduce:

  1. Connect your Lita bot to Slack
  2. Create a private room and invite your boot
  3. Execute a handler that will try Lita::Room.find_by_id(response.room.id), you get a nil object
  4. Disconnect and reconnect your Lita bot and try again. This time the room object is received.

Looks like the list of private rooms is retrieved on connecting to Slack and is not refreshed?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants