Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync more changes from branch more-streams #4513

Merged
merged 5 commits into from
Oct 1, 2016
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
RocketChat.models.Permissions = new class extends RocketChat.models._Base
constructor: ->
@_initModel 'permissions'
super('permissions')

# FIND
findByRole: (role, options) ->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
RocketChat.models.Roles = new class extends RocketChat.models._Base
constructor: ->
@_initModel 'roles'
super('roles')
@tryEnsureIndex { 'name': 1 }
@tryEnsureIndex { 'scope': 1 }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
RocketChat.saveRoomName = (rid, name, user) ->
RocketChat.saveRoomName = (rid, name) ->
room = RocketChat.models.Rooms.findOneById rid

if room.t not in ['c', 'p']
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
class EmojiCustom extends RocketChat.models._Base {
constructor() {
super();
this._initModel('custom_emoji');
super('custom_emoji');

this.tryEnsureIndex({ 'name': 1 });
this.tryEnsureIndex({ 'aliases': 1 });
Expand Down
2 changes: 1 addition & 1 deletion packages/rocketchat-highlight-words/client.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ class HighlightWordsClient
message.html = msg
return message

RocketChat.callbacks.add 'renderMessage', HighlightWordsClient, RocketChat.callbacks.priority.MEDIUM, 'highlight-words'
RocketChat.callbacks.add 'renderMessage', HighlightWordsClient, RocketChat.callbacks.priority.MEDIUM + 1, 'highlight-words'
2 changes: 1 addition & 1 deletion packages/rocketchat-importer/server/models/Imports.coffee
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Importer.Imports = new class Importer.Imports extends RocketChat.models._Base
constructor: ->
@_initModel 'import'
super('import')
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Importer.RawImports = new class Importer.RawImports extends RocketChat.models._Base
constructor: ->
@_initModel 'raw_imports'
super('raw_imports')
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
RocketChat.models.Integrations = new class extends RocketChat.models._Base
constructor: ->
@_initModel 'integrations'
super('integrations')


# FIND
Expand Down
Loading