mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01:00
Always fallback to the guest avatar instead of none
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
d28cbb8630
commit
c2125f9a81
@ -285,7 +285,7 @@ public class ChatMessage implements MessageContentType, MessageContentType.Image
|
|||||||
public String getAvatar() {
|
public String getAvatar() {
|
||||||
if (getActorType().equals("users")) {
|
if (getActorType().equals("users")) {
|
||||||
return ApiUtils.getUrlForAvatarWithName(getActiveUser().getBaseUrl(), actorId, R.dimen.avatar_size);
|
return ApiUtils.getUrlForAvatarWithName(getActiveUser().getBaseUrl(), actorId, R.dimen.avatar_size);
|
||||||
} else if (getActorType().equals("guests")) {
|
} else {
|
||||||
String apiId =
|
String apiId =
|
||||||
NextcloudTalkApplication.Companion.getSharedApplication().getString(R.string.nc_guest);
|
NextcloudTalkApplication.Companion.getSharedApplication().getString(R.string.nc_guest);
|
||||||
|
|
||||||
@ -293,8 +293,6 @@ public class ChatMessage implements MessageContentType, MessageContentType.Image
|
|||||||
apiId = getActorDisplayName();
|
apiId = getActorDisplayName();
|
||||||
}
|
}
|
||||||
return ApiUtils.getUrlForAvatarWithNameForGuests(getActiveUser().getBaseUrl(), apiId, R.dimen.avatar_size);
|
return ApiUtils.getUrlForAvatarWithNameForGuests(getActiveUser().getBaseUrl(), apiId, R.dimen.avatar_size);
|
||||||
} else {
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user