use of drift.com.drift.model.User in project drift-sdk-android by Driftt.
the class PresentationManager method showPopupForMessage.
private void showPopupForMessage(final Message message, final int otherMessages) {
User user = UserManager.getInstance().userMap.get(message.authorId);
Auth auth = Auth.getInstance();
if (user != null) {
showPopupForMessage(user, message, otherMessages);
} else if (auth != null && auth.endUser != null && auth.endUser.orgId != null) {
UserManager.getInstance().getUsers(auth.endUser.orgId, new UserManagerCallback() {
@Override
public void didLoadUsers(Boolean success) {
User user = UserManager.getInstance().userMap.get(message.authorId);
showPopupForMessage(user, message, otherMessages);
}
});
}
}
Aggregations