Skip to content

Commit

Permalink
Fix oldest_message_date in pisg formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdstaaij committed Mar 4, 2016
1 parent 65ef20d commit d030c60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion formatters/pisg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def end_dialog(dialog)
def format_message(dialog, message, output_stream)
return unless message['date'] and message['from']
return if message['from']['print_name'].to_s == ''
@oldest_message_date = Time.at(message['date'])
@oldest_message_date ||= Time.at(message['date'])
@users[message['from']['id']] = message['from']
lines = message['text'].to_s.split("\n")
lines.push('') if lines.empty?
Expand Down

0 comments on commit d030c60

Please sign in to comment.