Apps.Google.Calendar icon indicating copy to clipboard operation
Apps.Google.Calendar copied to clipboard

Update user status according to calendar

Open matheusjardimb opened this issue 6 years ago • 14 comments

Is it possible to set the user's status as 'busy' as soon as an event starts? It'd be great to have that kind of sync of status according to calendar events.

matheusjardimb avatar Sep 19 '19 19:09 matheusjardimb

@matheusjardimb Sorry for late response. Do you mean status in rocket.chat or on calendar slot?

Gautime avatar Oct 11 '19 16:10 Gautime

I meant to update my rocket.chat status when a event starts in my Google Calendar.

For example, set to busy when a meeting starts and turn back to available when the Meeting ends

matheusjardimb avatar Oct 11 '19 16:10 matheusjardimb

Got it. Let me look into it and see how we can implement this.

Gautime avatar Oct 11 '19 16:10 Gautime

Checked it. And sadly it's not possible with current architecture. Will keep this issue open so we can act on it as soon as it is possible.

Gautime avatar Oct 18 '19 05:10 Gautime

That's sad :'/ What's the main limitation you found?

I have considered even creating a side server that monitors GCalendar events and updates RC status accordingly. Is there any RC's web service entrypoint that I can call in order to update an user status?

I'm really looking into implementing this feature, so any alternative would be better than nothing.

matheusjardimb avatar Oct 18 '19 12:10 matheusjardimb

I looked into it and found that the rocket chat app engine, on which the app is built does not provide us a functionality to change the user status as of now. But soon this feature will be inducted in the app engine and we'll act on it at that time. :)

Gautime avatar Oct 19 '19 04:10 Gautime

@Gautime is there any progress on this? Would love to see this feature in future releases!

pxlfrk avatar May 12 '20 20:05 pxlfrk

@Gautime any update? :)

pxlfrk avatar Jul 11 '20 11:07 pxlfrk

@pxlfrk Sorry for late response. I am not updated with the new functionalities of RC app framework. Will discuss with team and let you know asap. :)

Gautime avatar Jul 17 '20 01:07 Gautime

@pxlfrk I looked into it and found that the framework lets you only read the user status at this point but cannot change it inside the app. The property we want to manage is "statusConenction" here - https://rocketchat.github.io/Rocket.Chat.Apps-engine/interfaces/iuser.html#statusconnection

Gautime avatar Jul 24 '20 13:07 Gautime

I have talked to the team. Hope this feature will be included in upcoming versions of framework. Good news about the App framework is now it lets you create buttons in UI. I'll be looking into that and see how we can make use of buttons in place of some commands! :)

Gautime avatar Jul 29 '20 01:07 Gautime

Any Update on this? would be a really cool feature which would help us a lot

holzfelix avatar Nov 12 '20 07:11 holzfelix

Sorry for late response. Thanks for bringing attention to this. I asked RC developers and came to know it is still not possible with current set of features. App engine allows you to change the status text but not the online status. But, it is definitely on the cards. Will integrate it as soon as it is available!

Gautime avatar Dec 19 '20 15:12 Gautime

@Gautime According to this it looks like you can change online status as well, at least from REST API: https://docs.rocket.chat/api/rest-api/methods/users/setstatus

fabiodaneze avatar Mar 08 '21 11:03 fabiodaneze