feat: add stats and starting call bottom sheet

This commit is contained in:
Harris
2021-09-06 09:15:48 +10:00
parent 3dd2a83dd0
commit b3576336d9
7 changed files with 196 additions and 28 deletions

View File

@@ -11,6 +11,8 @@ class CallMessage(): ControlMessage() {
override val isSelfSendValid: Boolean = false
override val ttl: Long = 5 * 60 * 1000
override fun isValid(): Boolean = super.isValid() && type != null && !sdps.isNullOrEmpty()
constructor(type: SignalServiceProtos.CallMessage.Type,

View File

@@ -2,10 +2,12 @@ package org.session.libsession.messaging.utilities
import kotlinx.coroutines.channels.Channel
import org.session.libsession.messaging.messages.control.CallMessage
import org.session.libsession.utilities.Address
object WebRtcUtils {
// TODO: move this to a better place that is persistent
val SIGNAL_QUEUE = Channel<CallMessage>(Channel.UNLIMITED)
val callCache: MutableMap<Address, MutableSet<CallMessage>> = mutableMapOf()
}