You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When we are trying to create new channels with given members it is throwing error:
ThrowableError(message=, cause=java.lang.NoSuchMethodError: No direct method <init>(Lio/getstream/chat/android/models/User;Ljava/util/Date;Ljava/util/Date;Ljava/lang/Boolean;Ljava/util/Date;Ljava/util/Date;ZZLjava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V in class Lio/getstream/chat/android/models/Member; or its super classes (declaration of 'io.getstream.chat.android.models.Member' appears in /data/app/~~l85PiCK7TDUpT7K6K7sQZA==/edu.paletteeduworkspace.paletteapp-lT2tKVzHxD2_eTga3h3FyA==/base.apk!classes19.dex))
SDK version
6.3.2
To Reproduce
This piece of code is to reproduce.
val uuid = UUID.randomUUID()
val channelId = uuid.toString()
client.createChannel(
channelType = "messaging",
channelId = channelId,
memberIds = listOf(currentUserId, id),
extraData = mutableMapOf(
"networkId" to args.netId,
"programUuid" to args.programId,
"networkName" to SessionManager.getString(requireContext(),"NETWORK_NAME").toString(),
"channel_type" to "normal",
"isArchived" to archivedList(listOf(currentUserId,id))
)
).enqueue {channelResult->
when(channelResult){
is Result.Failure -> {
Log.d("CreateChannel", channelResult.value.toString())
requireContext().showLongToast(resources.getString(R.string.initiating_the_chat_will_be_available_soon))
}
is Result.Success -> {
Log.d("CreateChannel", channelResult.toString())
findNavController().navigate(
CreateChannelFragmentDirections.actionCreateChannelFragmentToChattingFragment2(
channelResult.value.cid,
args.netId,
args.programId,
0,
args.programName,
channelResult.value.id,
channelResult.value.hasUnread
)
)
}
}
}
Expected behavior
It should be able to create new channels.
Device:
Moto G52
13
Screenshots
The text was updated successfully, but these errors were encountered:
## Stream Chat Android Client Proguard Rules
# Classes that are using with QuerySort can't be minified, because QuerySort uses reflection. If the
# name of the fields of the classes being used by QuerySort, change, the sort won't work as expected.
-keep class io.getstream.chat.android.models.** { *; }
-keep class io.getstream.chat.android.client.api2.model.** { *; }
# ExtraDataDto can't be minified because we check for extraData using reflection in
# io.getstream.chat.android.client.parser2.adapters.CustomObjectDtoAdapter. If the name of extraData
# is changed, we will have problem with serialization.
-keep class * extends io.getstream.chat.android.client.api2.model.dto.ExtraDataDto {
public kotlin.collections.Map extraData;
}
# Rules necessary for R8 full mode
-keep class io.getstream.chat.android.client.api2.endpoint.** { *; }
-keep class io.getstream.chat.android.client.call.RetrofitCall { *; }
-keep class com.squareup.moshi.JsonReader
-keep class com.squareup.moshi.JsonAdapter
-keep class kotlin.reflect.jvm.internal.* { *; }
# Rules to improve the logs by keeping the names of the classes
-keep class * extends io.getstream.chat.android.client.clientstate.UserState
# Classes that are used by reflection.
-keep class io.getstream.chat.android.client.notifications.ChatPushDelegate { *; }
Describe the bug
When we are trying to create new channels with given members it is throwing error:
ThrowableError(message=, cause=java.lang.NoSuchMethodError: No direct method <init>(Lio/getstream/chat/android/models/User;Ljava/util/Date;Ljava/util/Date;Ljava/lang/Boolean;Ljava/util/Date;Ljava/util/Date;ZZLjava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V in class Lio/getstream/chat/android/models/Member; or its super classes (declaration of 'io.getstream.chat.android.models.Member' appears in /data/app/~~l85PiCK7TDUpT7K6K7sQZA==/edu.paletteeduworkspace.paletteapp-lT2tKVzHxD2_eTga3h3FyA==/base.apk!classes19.dex))
SDK version
6.3.2
To Reproduce
This piece of code is to reproduce.
Expected behavior
It should be able to create new channels.
Device:
Screenshots
The text was updated successfully, but these errors were encountered: