lib/slack/real_time/client.rb in slack-ruby-client-0.15.0 vs lib/slack/real_time/client.rb in slack-ruby-client-0.15.1
- old
+ new
@@ -249,9 +249,11 @@
logger.error("#{self}##{__method__}") { e }
false
end
def run_handlers(type, data)
+ return unless store.class.events
+
handlers = store.class.events[type.to_s]
handlers&.each do |handler|
store.instance_exec(data, &handler)
end
rescue StandardError => e