Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into saml-logout
Browse files Browse the repository at this point in the history
# Conflicts:
#	package-lock.json
  • Loading branch information
rodrigok committed Feb 17, 2018
2 parents 0e53a9c + 99928a1 commit 6f13cf9
Show file tree
Hide file tree
Showing 256 changed files with 8,280 additions and 4,702 deletions.
39 changes: 23 additions & 16 deletions .meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -5,41 +5,42 @@

rocketchat:cors

[email protected].0
[email protected].0
[email protected].0
[email protected].0
[email protected].1
[email protected].1
[email protected].1
[email protected].1
[email protected]
[email protected].0
[email protected].1
blaze-html-templates
check@1.2.5
check@1.3.0
[email protected]
ddp-common@1.3.0
dynamic-import@0.2.0
ecmascript@0.9.0
ddp-common@1.4.0
dynamic-import@0.3.0
ecmascript@0.10.0
[email protected]
[email protected]
[email protected]
http@1.3.0
http@1.4.0
[email protected]
[email protected]
meteor-base@1.2.0
meteor-base@1.3.0
[email protected]
mongo@1.3.1
random@1.0.10
mongo@1.4.2
random@1.1.0
[email protected]
[email protected]
[email protected]
reload@1.1.11
reload@1.2.0
[email protected]
[email protected]
[email protected].0
[email protected].1
spacebars
standard-minifier-js@2.2.0
standard-minifier-js@2.3.1
[email protected]

rocketchat:2fa
rocketchat:action-links
rocketchat:accounts
rocketchat:analytics
rocketchat:api
rocketchat:assets
Expand Down Expand Up @@ -67,6 +68,11 @@ rocketchat:github-enterprise
rocketchat:gitlab
#rocketchat:google-natural-language
rocketchat:google-vision
rocketchat:grant
rocketchat:grant-facebook
rocketchat:grant-github
rocketchat:grant-google
rocketchat:graphql
rocketchat:highlight-words
rocketchat:iframe-login
rocketchat:importer
Expand All @@ -83,6 +89,7 @@ rocketchat:katex
rocketchat:ldap
rocketchat:lib
rocketchat:livechat
rocketchat:livestream
rocketchat:logger
rocketchat:login-token
rocketchat:mailer
Expand Down
2 changes: 1 addition & 1 deletion .meteor/release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[email protected].0.1
[email protected]
85 changes: 48 additions & 37 deletions .meteor/versions
Original file line number Diff line number Diff line change
Expand Up @@ -8,41 +8,41 @@ [email protected]
[email protected]
aldeed:[email protected]
[email protected]
autoupdate@1.3.12
babel-compiler@6.24.7
babel-runtime@1.1.1
[email protected].10
autoupdate@1.4.0
babel-compiler@7.0.4
babel-runtime@1.2.2
[email protected].11
[email protected]
[email protected]
[email protected]
[email protected]
boilerplate-generator@1.3.1
[email protected].9
boilerplate-generator@1.4.0
[email protected].11
[email protected]
callback-hook@1.0.10
callback-hook@1.1.0
cfs:[email protected]
[email protected]
[email protected]_3
[email protected]_3
[email protected]
[email protected]
dandv:[email protected]
[email protected]
ddp-client@2.2.0
ddp-common@1.3.0
ddp-client@2.3.1
ddp-common@1.4.0
[email protected]
[email protected].1
[email protected].2
deepwell:[email protected]
[email protected]
diff-sequence@1.0.7
diff-sequence@1.1.0
dispatch:[email protected]
dynamic-import@0.2.1
ecmascript@0.9.0
dynamic-import@0.3.0
ecmascript@0.10.4
[email protected]
ecmascript-runtime-client@0.5.0
ecmascript-runtime-client@0.6.2
[email protected]
edgee:[email protected]
[email protected]
[email protected]
emojione:[email protected]
[email protected]
[email protected]
[email protected]
francocatena:[email protected]
Expand All @@ -52,15 +52,15 @@ [email protected]
[email protected]
[email protected]
[email protected]
http@1.3.0
id-map@1.0.9
http@1.4.0
id-map@1.1.0
jalik:[email protected]_1
jalik:[email protected]
jalik:[email protected]
jparker:[email protected]
jparker:[email protected]
jparker:[email protected]
[email protected].10
[email protected].11
kadira:[email protected]
kadira:[email protected]
keepnox:[email protected]
Expand All @@ -72,28 +72,28 @@ konecty:[email protected]
konecty:[email protected]
konecty:[email protected]
[email protected]
[email protected].11
[email protected].12
[email protected]
[email protected]
[email protected]
matb33:[email protected]
mdg:[email protected]
[email protected]
meteor-base@1.2.0
meteor-base@1.3.0
[email protected]
meteorhacks:[email protected]
meteorhacks:[email protected]
meteorspark:[email protected]
minifier-css@1.2.16
minifier-js@2.2.2
minifier-css@1.3.1
minifier-js@2.3.2
[email protected]
mizzao:[email protected]
mizzao:[email protected]
[email protected]
[email protected]
[email protected].2
[email protected].1
mongo@1.3.1
[email protected].4
[email protected].2
mongo@1.4.3
[email protected]
[email protected]
[email protected]
Expand All @@ -102,29 +102,30 @@ mystor:[email protected]
nimble:[email protected]
nooitaf:[email protected]_1
[email protected]
[email protected].33
[email protected].34
[email protected]
[email protected]
[email protected]
[email protected]
ordered-dict@1.0.9
ordered-dict@1.1.0
ostrio:[email protected]
pauli:[email protected]
pauli:[email protected]
percolate:[email protected]
[email protected].1
[email protected].2
raix:[email protected]
raix:[email protected]
raix:[email protected]
raix:[email protected]
raix:[email protected]
random@1.0.10
[email protected].8
random@1.1.0
[email protected].9
[email protected]
[email protected]
reload@1.1.11
retry@1.0.9
reload@1.2.0
retry@1.1.0
rocketchat:[email protected]
rocketchat:[email protected]
rocketchat:[email protected]
rocketchat:[email protected]
rocketchat:[email protected]
Expand Down Expand Up @@ -153,6 +154,11 @@ rocketchat:[email protected]
rocketchat:[email protected]
rocketchat:[email protected]
rocketchat:[email protected]
rocketchat:[email protected]
rocketchat:[email protected]
rocketchat:[email protected]
rocketchat:[email protected]
rocketchat:[email protected]
rocketchat:[email protected]
rocketchat:[email protected]
rocketchat:[email protected]
Expand All @@ -170,6 +176,7 @@ rocketchat:[email protected]
rocketchat:[email protected]
rocketchat:[email protected]
rocketchat:[email protected]
rocketchat:[email protected]
rocketchat:[email protected]
rocketchat:[email protected]
rocketchat:[email protected]
Expand Down Expand Up @@ -232,16 +239,20 @@ rocketchat:[email protected]
rocketchat:[email protected]
rocketchat:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
simple:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
standard-minifier-js@2.2.3
standard-minifier-js@2.3.2
steffo:[email protected]
swydo:[email protected]
tap:[email protected]
[email protected]
[email protected]
Expand All @@ -252,8 +263,8 @@ [email protected]
[email protected]
[email protected]
[email protected]
url@1.1.0
webapp@1.4.0
url@1.2.0
webapp@1.5.0
[email protected]
yasaricli:[email protected]
yasinuslu:[email protected]
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ It is a great solution for communities and companies wanting to privately host t
- File Upload / Sharing
- Scalable file sharing - S3 uploads with CDN downloads
- Full text search
- Global search (from all channels/rooms at once)
- Live chat / Messaging call center
- LDAP Authentication
- CAS 1.0, 2.0 support for educational institutions and hosting providers worldwide
Expand Down
13 changes: 9 additions & 4 deletions client/notifications/notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Meteor.startup(function() {
// This logic is duplicated in /client/startup/unread.coffee.
const hasFocus = readMessage.isEnable();
const messageIsInOpenedRoom = openedRoomId === notification.payload.rid;
const muteFocusedConversations = RocketChat.getUserPreference(Meteor.user(), 'muteFocusedConversations');

fireGlobalEvent('notification', {
notification,
Expand All @@ -42,10 +43,13 @@ Meteor.startup(function() {
KonchatNotification.newMessage(notification.payload.rid);
KonchatNotification.showDesktop(notification);
}
} else if (!(hasFocus && messageIsInOpenedRoom)) {
} else if (!hasFocus || !messageIsInOpenedRoom) {
// Play a sound and show a notification.
KonchatNotification.newMessage(notification.payload.rid);
KonchatNotification.showDesktop(notification);
} else if (!muteFocusedConversations) {
// Play a notification sound
KonchatNotification.newMessage(notification.payload.rid);
}
});

Expand All @@ -56,14 +60,15 @@ Meteor.startup(function() {
// This logic is duplicated in /client/startup/unread.coffee.
const hasFocus = readMessage.isEnable();
const messageIsInOpenedRoom = openedRoomId === notification.payload.rid;
const muteFocusedConversations = RocketChat.getUserPreference(Meteor.user(), 'muteFocusedConversations');

if (RocketChat.Layout.isEmbedded()) {
if (!hasFocus && messageIsInOpenedRoom) {
// Play a sound and show a notification.
// Play a notification sound
KonchatNotification.newMessage(notification.payload.rid);
}
} else if (!(hasFocus && messageIsInOpenedRoom)) {
// Play a sound and show a notification.
} else if (!hasFocus || !messageIsInOpenedRoom || !muteFocusedConversations) {
// Play a notification sound
KonchatNotification.newMessage(notification.payload.rid);
}
});
Expand Down
9 changes: 9 additions & 0 deletions graphql.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"schema": {
"request": {
"url" : "http://localhost:3000/api/graphql",
"method" : "POST",
"postIntrospectionQuery" : true
}
}
}
Loading

0 comments on commit 6f13cf9

Please sign in to comment.