lib/ayadn/workers.rb in ayadn-4.0 vs lib/ayadn/workers.rb in ayadn-4.0.1
- old
+ new
@@ -333,9 +333,10 @@
chan = Struct.new(:id, :num_messages, :subscribers, :type, :owner, :annotations, :readers, :editors, :writers, :you_subscribed, :unread, :recent_message_id, :recent_message)
no_user = {}
api = API.new
stream.each do |ch|
+ next if ch.id.nil?
unless ch.writers.user_ids.empty?
@status.say_cyan :parsing, "channel #{ch.id}"
usernames = []
ch.writers.user_ids.each do |id|
next if no_user[id]