Commit b79a145e authored by Daniel Schubert's avatar Daniel Schubert 🎯

fix

parent 21dc2d6d
......@@ -73,12 +73,12 @@ class ImportDMS
@dms.fetch(key).each do |u_id|
user_names.push( @users.fetch(u_id) )
end
self.create_channel_list
self.create_direct_messages
self.create_channel_list(user_names)
self.create_direct_messages(key, user_names)
end
end
def create_direct_messages
def create_direct_messages(key, user_names)
#TODO : replies are output as normal messages; should be grouped as replies
# create direct messages list
m = get_messages(key)
......@@ -88,7 +88,7 @@ class ImportDMS
end
end
def create_channel_list
def create_channel_list( user_names )
cl = {"type" => "direct_channel", "direct_channel" => {"members" => user_names, "favorited_by" => nil,"header" => "" }}.to_json
puts cl
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment