Skip to main content

setOrgStreamSubscription method

void setOrgStreamSubscription ()

Implementation

void setOrgStreamSubscription() \{
_userConfig.currentOrgInfoStream.listen((updatedOrganization) \{
if (updatedOrganization != _currentOrg) \{
print("org changes from post service");
_renderedPostID.clear();
_currentOrg = updatedOrganization;
getPosts();
\}
\});
\}