in the process of adjusting the greeting message to use the time the user entered the meeting
This commit is contained in:
parent
86e36d375e
commit
77a383f497
@ -56,7 +56,7 @@ Template.chatbar.helpers
|
||||
'message':
|
||||
'message': Template.chatbar.getChatGreeting(),
|
||||
'from_username': 'System',
|
||||
'from_time': getTime()
|
||||
'from_time': getTime() # this should be using the time when the user entered
|
||||
'from_color': '0x3399FF' # A nice blue in hex
|
||||
]
|
||||
else
|
||||
|
@ -39,6 +39,7 @@ Meteor.methods
|
||||
extern_userid: user.extern_userid
|
||||
permissions: user.permissions
|
||||
locked: user.locked
|
||||
time_of_joining: user.timeOfJoining
|
||||
voiceUser:
|
||||
web_userid: user.voiceUser.web_userid
|
||||
callernum: user.voiceUser.callernum
|
||||
|
@ -206,10 +206,12 @@ class Meteor.RedisPubSub
|
||||
unless Meteor.Meetings.findOne({MeetingId: message.payload?.meeting_id})?
|
||||
users = message.payload?.users
|
||||
for user in users
|
||||
user.timeOfJoining = message.header?.current_time # TODO this might need to be removed
|
||||
Meteor.call("addUserToCollection", meetingId, user)
|
||||
|
||||
if message.header?.name is "user_joined_message"
|
||||
user = message.payload.user
|
||||
user.timeOfJoining = message.header?.current_time
|
||||
Meteor.call("addUserToCollection", meetingId, user)
|
||||
|
||||
if message.header?.name is "user_left_message"
|
||||
|
Loading…
Reference in New Issue
Block a user