lib/slack/smart-bot/commands/general/see_announcements.rb in slack-smart-bot-1.12.9 vs lib/slack/smart-bot/commands/general/see_announcements.rb in slack-smart-bot-1.13.0

- old
+ new

@@ -72,12 +72,12 @@ user_created = m[:user_created] user_info = @users.select { |u| u.name == user_created or (u.key?(:enterprise_user) and u.enterprise_user.name == user_created) }[-1] user_created = user_info.profile.display_name unless user_info.nil? end if type == 'all' and channel_id[0]=='D' - message << "\t#{m[:message_id]} #{emoji} *_#{m[:date]}_* #{m[:time]} *:* \t*private*" + message << "\t#{emoji} *private* _(id:#{m[:message_id]} - #{m[:date]} #{m[:time]})_" else - message << "\t#{m[:message_id]} #{emoji} *_#{m[:date]}_* #{m[:time]} #{"#{user_created} " unless channel_id[0]=='D'}*:* \t#{m[:message]}" + message << "\t#{emoji} #{m[:message]} _(id:#{m[:message_id]} - #{m[:date]} #{m[:time]} #{user_created})_" end end end if message.size > 0 if channel_id[0]=='D'