fix
This commit is contained in:
parent
21dc2d6d5b
commit
b79a145e62
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user