litaio / lita-slack

A Slack adapter for Lita.
MIT License
141 stars 130 forks source link

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

Open crunis opened 8 years ago

crunis commented 8 years ago

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?