Przeglądaj źródła

Merge pull request #1081 from nextcloud/fixAvatarsForGroupChats

Fix avatars for group chats
Marcel Hibbe 4 lat temu
rodzic
commit
a74ddfa5c2

+ 2 - 1
CHANGELOG.md

@@ -9,7 +9,7 @@ Types of changes can be: Added/Changed/Deprecated/Removed/Fixed/Security
 ### Added
 
 ### Changed
-- improve conversation list design and dark/light theming
+- improve conversation list design and dark/light theming (@AndyScherzinger)
 
 ### Fixed
 - @ in username is allowed for phonebook sync
@@ -17,6 +17,7 @@ Types of changes can be: Added/Changed/Deprecated/Removed/Fixed/Security
 - avoid creation of multiple "chat via"-links in phonebook
 - delete "chat via"-link from phonebook if phone number was deleted on server
 - remove all "chat via"-links from phonebook when sync is disabled
+- fix to show avatars for incoming pictures in group chats (@starypatyk)
 
 ## [11.1.0] - 2021-03-12
 ### Added

+ 9 - 1
app/src/main/res/layout/item_custom_incoming_preview_message.xml

@@ -28,13 +28,21 @@
     android:layout_marginEnd="16dp"
     android:layout_marginBottom="2dp">
 
+    <com.facebook.drawee.view.SimpleDraweeView
+        android:id="@id/messageUserAvatar"
+        android:layout_width="24dp"
+        android:layout_height="24dp"
+        android:layout_alignParentTop="true"
+        android:layout_marginEnd="8dp"
+        app:roundAsCircle="true" />
+
     <com.google.android.flexbox.FlexboxLayout
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:layout_marginTop="8dp"
         android:layout_marginBottom="8dp"
+        android:layout_toEndOf="@id/messageUserAvatar"
         android:orientation="vertical"
-        android:layout_alignParentStart="true"
         app:alignContent="stretch"
         app:alignItems="stretch"
         app:flexWrap="wrap"