浏览代码

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>
Marcel Hibbe 2 年之前
父节点
当前提交
1301d627dd
共有 1 个文件被更改,包括 6 次插入16 次删除
  1. 6 16
      app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt

+ 6 - 16
app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt

@@ -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"