group address

This commit is contained in:
Ryan ZHAO 2021-01-08 11:12:24 +11:00
parent 27ea170194
commit 172991231c

View File

@ -9,10 +9,8 @@ import org.session.libsession.utilities.DelimiterUtil.escape
import org.session.libsession.utilities.DelimiterUtil.split
import org.session.libsession.utilities.DelimiterUtil.unescape
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.service.internal.util.Util
import java.lang.AssertionError
import java.util.*
import java.util.concurrent.atomic.AtomicReference
import java.util.regex.Matcher
@ -42,6 +40,11 @@ class Address private constructor(address: String) : Parcelable, Comparable<Addr
return address
}
fun toGroupString(): String {
if (!isGroup) throw AssertionError("Not group")
return address
}
override fun toString(): String {
return address
}