File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
src/main/java/com/example/chattutorial Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ android {
4040
4141dependencies {
4242 implementation " org.jetbrains.kotlin:kotlin-stdlib:1.4.10"
43- implementation " com.github.getstream:stream-chat-android:4.4.1-alpha "
43+ implementation " com.github.getstream:stream-chat-android:1ab9aa8ae2bde84d5e7a61b767b32dd0c33d05e6 "
4444 implementation " io.coil-kt:coil:1.0.0"
4545
4646 implementation " androidx.lifecycle:lifecycle-viewmodel:2.3.0-beta1"
Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ import com.getstream.sdk.chat.viewmodel.messages.MessageListViewModel.Mode.Norma
1616import com.getstream.sdk.chat.viewmodel.messages.MessageListViewModel.Mode.Thread
1717import com.getstream.sdk.chat.viewmodel.messages.MessageListViewModel.State.NavigateUp
1818import com.getstream.sdk.chat.viewmodel.messages.bindView
19+ import io.getstream.chat.android.client.ChatClient
20+ import io.getstream.chat.android.client.events.TypingStartEvent
21+ import io.getstream.chat.android.client.events.TypingStopEvent
1922import io.getstream.chat.android.client.models.Channel
2023
2124class ChannelActivity4 : AppCompatActivity () {
@@ -79,14 +82,11 @@ class ChannelActivity4 : AppCompatActivity() {
7982 binding.typingHeader.text = nobodyTyping
8083
8184 val currentlyTyping = mutableSetOf<String >()
82- // TODO update when new SDK version is out
83- /*
85+
8486 ChatClient
8587 .instance()
8688 .channel(cid)
87- .subscribeFor(
88- this,
89- TypingStartEvent::class, TypingStopEvent::class
89+ .subscribeFor(this , TypingStartEvent ::class , TypingStopEvent ::class
9090 ) { event ->
9191 when (event) {
9292 is TypingStartEvent -> currentlyTyping.add(event.user.name)
@@ -97,7 +97,7 @@ class ChannelActivity4 : AppCompatActivity() {
9797 currentlyTyping.isNotEmpty() -> currentlyTyping.joinToString(prefix = " typing: " )
9898 else -> nobodyTyping
9999 }
100- }*/
100+ }
101101 }
102102
103103 companion object {
You can’t perform that action at this time.
0 commit comments