Method: Chatrix::Components::Timeline#update
- Defined in:
- lib/chatrix/components/timeline.rb
#update(data) ⇒ Object
Process timeline events.
26 27 28 29 30 31 32 |
# File 'lib/chatrix/components/timeline.rb', line 26 def update(data) data['events'].each { |e| process_event e } if data.key? 'events' # Pass the event data to state to handle any state updates # in the timeline @room.state.update data end |