mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 19:49:33 +01:00
remove conversation avatar from chatActivity.
only show users avatars. conversation avatars were removed again for now, because this would need more work to add custom view to the supportActionBar in order to show themed drawables. Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
28046c2492
commit
1301d627dd
@ -991,22 +991,12 @@ class ChatActivity :
|
||||
}
|
||||
|
||||
private fun loadAvatarForStatusBar() {
|
||||
if (isOneToOneConversation() || isGroupConversation() || isPublicConversation()) {
|
||||
var url = ""
|
||||
if (isOneToOneConversation()) {
|
||||
url = ApiUtils.getUrlForAvatar(
|
||||
conversationUser!!.baseUrl,
|
||||
currentConversation!!.name,
|
||||
true
|
||||
)
|
||||
} else if (isGroupConversation() || isPublicConversation()) {
|
||||
url = ApiUtils.getUrlForConversationAvatarWithVersion(
|
||||
1,
|
||||
conversationUser!!.baseUrl,
|
||||
currentConversation!!.token,
|
||||
currentConversation!!.avatarVersion
|
||||
)
|
||||
}
|
||||
if (isOneToOneConversation()) {
|
||||
var url = ApiUtils.getUrlForAvatar(
|
||||
conversationUser!!.baseUrl,
|
||||
currentConversation!!.name,
|
||||
true
|
||||
)
|
||||
|
||||
if (DisplayUtils.isDarkModeOn(supportActionBar?.themedContext)) {
|
||||
url = "$url/dark"
|
||||
|
Loading…
Reference in New Issue
Block a user