mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-03 18:41:47 +01:00
Show the bridge-bot avatar for bridged messages
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
c2125f9a81
commit
9411614175
@ -285,6 +285,9 @@ public class ChatMessage implements MessageContentType, MessageContentType.Image
|
||||
public String getAvatar() {
|
||||
if (getActorType().equals("users")) {
|
||||
return ApiUtils.getUrlForAvatarWithName(getActiveUser().getBaseUrl(), actorId, R.dimen.avatar_size);
|
||||
} else if (getActorType().equals("bridged")) {
|
||||
return ApiUtils.getUrlForAvatarWithName(getActiveUser().getBaseUrl(), "bridge-bot",
|
||||
R.dimen.avatar_size);
|
||||
} else {
|
||||
String apiId =
|
||||
NextcloudTalkApplication.Companion.getSharedApplication().getString(R.string.nc_guest);
|
||||
|
Loading…
Reference in New Issue
Block a user