Closed imorland closed 4 years ago
Won't that always return truthy, as it returns a collection of users (even if it's empty)? Perhaps make it ->recipientUsers()->count() (I think that's a method on eloquent relationship... Not sure) or recipientIsers->length.
Either way, I'm not sure it the curre t condition is ever falsy.
recipientUsers is only present on a byobu discussion, so my understanding is that it will only return true if it’s a byobu private discussion.
It certainly appears to work from some local testing.
I’ll step over it with the debugger attached tomorrow to double check
@datitisev just had a chance to check this out, you were correct, i've updated accordingly :)
/assets
to/resources
Addresses #75