Skip to content
Snippets Groups Projects
Commit eee3e3a1 authored by Kiran Rao's avatar Kiran Rao
Browse files

Decaffinate collections.js

parent 50ee03b1
No related branches found
No related tags found
No related merge requests found
@ChatMessage = new Meteor.Collection null
@CachedChatRoom = new RocketChat.CachedCollection({ name: 'rooms' })
@ChatRoom = CachedChatRoom.collection
@CachedChatSubscription = new RocketChat.CachedCollection({ name: 'subscriptions' })
@ChatSubscription = CachedChatSubscription.collection
@UserRoles = new Mongo.Collection null
@RoomRoles = new Mongo.Collection null
@UserAndRoom = new Meteor.Collection null
@CachedChannelList = new Meteor.Collection null
@CachedUserList = new Meteor.Collection null
RocketChat.models.Users = _.extend {}, RocketChat.models.Users, Meteor.users
RocketChat.models.Subscriptions = _.extend {}, RocketChat.models.Subscriptions, @ChatSubscription
RocketChat.models.Rooms = _.extend {}, RocketChat.models.Rooms, @ChatRoom
RocketChat.models.Messages = _.extend {}, RocketChat.models.Messages, @ChatMessage
this.ChatMessage = new Meteor.Collection(null);
this.CachedChatRoom = new RocketChat.CachedCollection({ name: 'rooms' });
this.ChatRoom = this.CachedChatRoom.collection;
this.CachedChatSubscription = new RocketChat.CachedCollection({ name: 'subscriptions' });
this.ChatSubscription = this.CachedChatSubscription.collection;
this.UserRoles = new Mongo.Collection(null);
this.RoomRoles = new Mongo.Collection(null);
this.UserAndRoom = new Meteor.Collection(null);
this.CachedChannelList = new Meteor.Collection(null);
this.CachedUserList = new Meteor.Collection(null);
RocketChat.models.Users = _.extend({}, RocketChat.models.Users, Meteor.users);
RocketChat.models.Subscriptions = _.extend({}, RocketChat.models.Subscriptions, this.ChatSubscription);
RocketChat.models.Rooms = _.extend({}, RocketChat.models.Rooms, this.ChatRoom);
RocketChat.models.Messages = _.extend({}, RocketChat.models.Messages, this.ChatMessage);
......@@ -36,7 +36,7 @@ Package.onUse(function(api) {
api.addFiles('client/lib/accounts.coffee', 'client');
api.addFiles('client/lib/avatar.coffee', 'client');
api.addFiles('client/lib/chatMessages.coffee', 'client');
api.addFiles('client/lib/collections.coffee', 'client');
api.addFiles('client/lib/collections.js', 'client');
api.addFiles('client/lib/customEventPolyfill.js', 'client');
api.addFiles('client/lib/fileUpload.coffee', 'client');
api.addFiles('client/lib/fireEvent.js', 'client');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment