
As the gif shows, the app shows shows error, when one try to access threads of a channel that he has not joined.
@diegolmello
app > views > ThreadMessagesView> index.js > line no 100 inside subsribeData() function. when I comment out the code on line 100, the error disappears, and everything works fine, but I am not able to understand why this is so.

@Prateek93a try change findAndObserve to two functions like:
try {
const db = database.active;
const subCollection = await db.collections.get('subscriptions');
const subscription = await subCollection.find(this.rid);
const observable = subscription.observe();
this.subSubscription = observable
.subscribe(changes => console.log(changes));
catch (e) {
console.log('subscription not found');
}
Unfortunately the function findAndObserve not works fine, when the object is not found this not throw an error..
@djorkaeffalexandre Yes Sir your solution worked, since the findAndObserve was not throwing error, the app was crashing. Now after splitting the function, the error got thrown and logged out in the console, without crashing the app. So the solution is working.
;)
hey @Prateek93a, can you confirm if it's happening yet?
I followed your gif here and can't reproduce any error.
@djorkaeffalexandre I can't reproduce it. I think it was fixed by #1997. Closing it.