File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
samplejava/src/main/java/com/example/chattutorial
samplekotlin/src/main/java/com/example/chattutorial Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public class ImgurAttachmentViewFactory extends AttachmentViewFactory {
2626 public View createAttachmentView (@ NotNull MessageListItem .MessageItem data ,
2727 @ NotNull MessageListListenerContainer listeners ,
2828 @ NotNull MessageListItemStyle style ,
29- @ NotNull View parent ) {
29+ @ NotNull ViewGroup parent ) {
3030 Attachment imgurAttachment = null ;
3131 for (Attachment attachment : data .getMessage ().getAttachments ()) {
3232 String imageUrl = attachment .getImageUrl ();
Original file line number Diff line number Diff line change 1111import org .jetbrains .annotations .Nullable ;
1212
1313import io .getstream .chat .android .client .ChatClient ;
14+ import io .getstream .chat .android .client .api .models .FilterObject ;
1415import io .getstream .chat .android .client .models .Filters ;
1516import io .getstream .chat .android .client .models .User ;
16- import io .getstream .chat .android .client .utils .FilterObject ;
1717import io .getstream .chat .android .livedata .ChatDomain ;
1818import io .getstream .chat .android .ui .channel .list .viewmodel .ChannelListViewModel ;
1919import io .getstream .chat .android .ui .channel .list .viewmodel .ChannelListViewModelBinding ;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class ImgurAttachmentViewFactory : AttachmentViewFactory() {
1818 data : MessageListItem .MessageItem ,
1919 listeners : MessageListListenerContainer ,
2020 style : MessageListItemStyle ,
21- parent : View ,
21+ parent : ViewGroup ,
2222 ): View {
2323 val imgurAttachment = data.message.attachments.firstOrNull { it.isImgurAttachment() }
2424 return when {
You can’t perform that action at this time.
0 commit comments