mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-31 07:06:15 +00:00
feat: add stats and starting call bottom sheet
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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()
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user