use of com.waz.zclient.controllers.tracking.events.connect.AcceptedGenericInviteEvent in project wire-android by wireapp.
the class MainActivity method handleInvite.
private void handleInvite() {
String token = getControllerFactory().getUserPreferencesController().getGenericInvitationToken();
getControllerFactory().getUserPreferencesController().setGenericInvitationToken(null);
if (TextUtils.isEmpty(token) || TextUtils.equals(token, AppEntryStore.GENERAL_GENERIC_INVITE_TOKEN)) {
return;
}
getStoreFactory().getConnectStore().requestConnection(token);
injectJava(GlobalTrackingController.class).tagEvent(new AcceptedGenericInviteEvent());
}
use of com.waz.zclient.controllers.tracking.events.connect.AcceptedGenericInviteEvent in project wire-android by wireapp.
the class MainActivity method handleReferral.
private void handleReferral() {
String referralToken = getControllerFactory().getUserPreferencesController().getReferralToken();
getControllerFactory().getUserPreferencesController().setReferralToken(null);
if (TextUtils.isEmpty(referralToken) || TextUtils.equals(referralToken, AppEntryStore.GENERAL_GENERIC_INVITE_TOKEN)) {
return;
}
getStoreFactory().getConnectStore().requestConnection(referralToken);
injectJava(GlobalTrackingController.class).tagEvent(new AcceptedGenericInviteEvent());
}
Aggregations