Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / communicate-dev / src / main / java / com / vayunmathur / communicate / data / signal / call / SignalRemote.kt
SignalRemote.kt14 lines · 466 BRaw
| 1 | package com.vayunmathur.communicate.data.signal.call |
| 2 | |
| 3 | import 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 | */ |
| 11 | data class SignalRemote(val aci: String) : Remote { |
| 12 | override fun recipientEquals(remote: Remote?): Boolean = |
| 13 | remote is SignalRemote && remote.aci.equals(aci, ignoreCase = true) |
| 14 | } |