Skip to content

Commit

Permalink
fix diff in jitsi external api
Browse files Browse the repository at this point in the history
  • Loading branch information
geekgonecrazy committed Jul 27, 2019
1 parent 6fd69d0 commit dd4d94e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/videobridge/server/methods/jitsiGenerateToken.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { canAccessRoom } from '../../../authorization/server/functions/canAccess

Meteor.methods({
'jitsi:generateAccessToken': (rid) => {

if (!Meteor.userId()) {
throw new Meteor.Error('error-invalid-user', 'Invalid user', { method: 'jitsi:generateToken' });
}
Expand Down Expand Up @@ -58,7 +57,7 @@ Meteor.methods({
nbf: jws.IntDate.get('now'),
exp: jws.IntDate.get(`now + ${ JITSI_OPTIONS.jitsi_lifetime_token }`),
aud: 'RocketChat',
room: (jitsiLimitTokenToRoom) ? jitsiRoom : '*',
room: jitsiLimitTokenToRoom ? jitsiRoom : '*',
context: '', // first empty
};

Expand Down

0 comments on commit dd4d94e

Please sign in to comment.