Search in sources :

Example 1 with UnblockingEvent

use of com.waz.zclient.controllers.tracking.events.connect.UnblockingEvent in project wire-android by wireapp.

the class BlockedUserProfileFragment method unblockUser.

private void unblockUser(User user) {
    goToConversationWithUser = true;
    ((BaseScalaActivity) getActivity()).injectJava(GlobalTrackingController.class).tagEvent(new UnblockingEvent());
    IConversation conversation = getStoreFactory().getConnectStore().unblockUser(user);
    if (conversation != null) {
        // Note! important to pass conversation returned by unblockUser() instead of user.getConversation()
        getContainer().onUnblockedUser(conversation);
    }
}
Also used : GlobalTrackingController(com.waz.zclient.tracking.GlobalTrackingController) UnblockingEvent(com.waz.zclient.controllers.tracking.events.connect.UnblockingEvent) IConversation(com.waz.api.IConversation)

Aggregations

IConversation (com.waz.api.IConversation)1 UnblockingEvent (com.waz.zclient.controllers.tracking.events.connect.UnblockingEvent)1 GlobalTrackingController (com.waz.zclient.tracking.GlobalTrackingController)1