lib/ruboty/adapters/slack_rtm.rb in ruboty-slack_rtm-2.4.1 vs lib/ruboty/adapters/slack_rtm.rb in ruboty-slack_rtm-2.4.2

- old
+ new

@@ -124,15 +124,15 @@ user: user, mention_to: data['mention_to'], time: Time.at(data['ts'].to_f) } - robot.receive(message_info.merge(body: CGI.unescapeHTML(data['text'])) + robot.receive(message_info.merge(body: CGI.unescapeHTML(data['text']))) (data['attachments'] || []).each do |attachment| - body = (attachments['fallback'] || "#{attachment['text']} #{attachment['pretext']}") + body = attachment['fallback'] || "#{attachment['text']} #{attachment['pretext']}" - robot.receive(message_info.merge(body: CGI.unescapeHTML(body)) unless body.empty? + robot.receive(message_info.merge(body: CGI.unescapeHTML(body))) unless body.empty? end end def on_channel_change(data) make_channels_cache