mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-23 18:15:22 +00:00
group address
This commit is contained in:
parent
27ea170194
commit
172991231c
@ -9,10 +9,8 @@ import org.session.libsession.utilities.DelimiterUtil.escape
|
|||||||
import org.session.libsession.utilities.DelimiterUtil.split
|
import org.session.libsession.utilities.DelimiterUtil.split
|
||||||
import org.session.libsession.utilities.DelimiterUtil.unescape
|
import org.session.libsession.utilities.DelimiterUtil.unescape
|
||||||
import org.session.libsession.utilities.GroupUtil
|
import org.session.libsession.utilities.GroupUtil
|
||||||
import org.session.libsession.utilities.NumberUtil.isValidEmail
|
|
||||||
import org.session.libsignal.libsignal.util.guava.Optional
|
import org.session.libsignal.libsignal.util.guava.Optional
|
||||||
import org.session.libsignal.service.internal.util.Util
|
import org.session.libsignal.service.internal.util.Util
|
||||||
import java.lang.AssertionError
|
|
||||||
import java.util.*
|
import java.util.*
|
||||||
import java.util.concurrent.atomic.AtomicReference
|
import java.util.concurrent.atomic.AtomicReference
|
||||||
import java.util.regex.Matcher
|
import java.util.regex.Matcher
|
||||||
@ -42,6 +40,11 @@ class Address private constructor(address: String) : Parcelable, Comparable<Addr
|
|||||||
return address
|
return address
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun toGroupString(): String {
|
||||||
|
if (!isGroup) throw AssertionError("Not group")
|
||||||
|
return address
|
||||||
|
}
|
||||||
|
|
||||||
override fun toString(): String {
|
override fun toString(): String {
|
||||||
return address
|
return address
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user