Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
dependencies ▾

Modern-Apps.git / communicate-dev / src / main / java / com / vayunmathur / communicate / data / signal / call / SignalRemote.kt

SignalRemote.kt14 lines · 466 BRaw
1package com.vayunmathur.communicate.data.signal.call
2
3import org.signal.ringrtc.Remote
4
5/**
6 * The other end of a 1:1 Signal call, identified by ACI.
7 *
8 * RingRTC hands this back on every callback, so it is how a signaling message gets addressed to the
9 * right person.
10 */
11data class SignalRemote(val aci: String) : Remote {
12 override fun recipientEquals(remote: Remote?): Boolean =
13 remote is SignalRemote && remote.aci.equals(aci, ignoreCase = true)
14}