Leave analytics client running on sign out.

Only identify with a running session.
This commit is contained in:
Doug
2021-12-13 17:30:38 +00:00
parent b44642a31d
commit 5c19dca3ec
4 changed files with 56 additions and 28 deletions
@@ -1884,6 +1884,11 @@ NSString *const AppDelegateUniversalLinkDidChangeNotification = @"AppDelegateUni
[self.pushNotificationService checkPushKitPushersInSession:mxSession];
}
else if (mxSession.state == MXSessionStateRunning)
{
// Configure analytics from the session if necessary
[Analytics.shared useAnalyticsSettingsFrom:mxSession];
}
else if (mxSession.state == MXSessionStateClosed)
{
[self removeMatrixSession:mxSession];