Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
RocketChat
Rocket.Chat.ReactNative
Commits
a341f0d6
Unverified
Commit
a341f0d6
authored
Feb 17, 2020
by
Diego Mello
Committed by
GitHub
Feb 17, 2020
Browse files
[FIX] Catch room unsubscribe error (#1739)
parent
a580d3a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/lib/methods/subscriptions/room.js
View file @
a341f0d6
...
...
@@ -39,7 +39,7 @@ export default class RoomSubscription {
if
(
this
.
promises
)
{
try
{
const
subscriptions
=
await
this
.
promises
||
[];
subscriptions
.
map
(
sub
=>
sub
.
unsubscribe
());
subscriptions
.
forEach
(
sub
=>
sub
.
unsubscribe
()
.
catch
(()
=>
console
.
log
(
'
unsubscribeRoom
'
))
);
}
catch
(
e
)
{
// do nothing
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment