-
Notifications
You must be signed in to change notification settings - Fork 119
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
[NEW] Add possibility to set room closer to LivechatUpdater.closeRoom #391
[NEW] Add possibility to set room closer to LivechatUpdater.closeRoom #391
Conversation
319fed3
to
e3dd3a8
Compare
Codecov Report
@@ Coverage Diff @@
## alpha #391 +/- ##
==========================================
+ Coverage 48.67% 49.91% +1.23%
==========================================
Files 103 110 +7
Lines 3244 3370 +126
Branches 476 473 -3
==========================================
+ Hits 1579 1682 +103
- Misses 1665 1688 +23
Continue to review full report at Codecov.
|
f6b943f
to
7cd690f
Compare
Hi @meomay503! Can you share the app you've made to test the functionality? Thanks π€ |
Hi, thanks for having a look at this PR. |
Do u have any updates on this? |
@cuonghuunguyen any chance you can update this PR to resolve the conflicts? Once you do and everything is ready to go, I'll internally push this PR forward and try to get it (and all the connected pieces) merged ASAP. My apologies that his has not received any attention. I work on the marketplace now and was going through your Clean Livechat app to review it and seen your reference to this PR. As a result of that, that's why I am more active in this repo :) |
ok, I'll update this one ASAP |
hi @graywolf336, I updated the PRs |
7cd690f
to
c1493f4
Compare
c1493f4
to
fe47531
Compare
Just to double check, this is backwards compatible, right? So if I install an App that uses an old apps engine, will it still work even if the rocket.chat server has this version? |
It still work, the new closer field is optional |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the contribution!
What? β΅
closer
intoLivechatUpdater.closeRoom
so that we can close the room with the correct closer.closes Possibility to set room closer when closing LiveChat RoomsΒ #373
Why? π€
When closing the room with the Apps, the room closer and the close room message sender will always be set to the visitor. This is not a correct behavior because the visitor does not perform that function.
This is not a very clean approach, we actually should pass something like
closeData
which contains all the needed data for Rocket.Chat close room function, but to avoid breaking change we can accept this approach right nowLinks π
Rocket.Chat issue: RocketChat/Rocket.Chat#21025
PS π