mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-22 16:07:30 +00:00
Cleanup ConversationViewModel
This commit is contained in:
parent
c5c3365b18
commit
88dfceed67
@ -221,14 +221,12 @@ class ConversationViewModel(
|
||||
}
|
||||
|
||||
fun hidesInputBar(): Boolean = openGroup?.canWrite != true &&
|
||||
blindedRecipient?.blocksCommunityMessageRequests == true
|
||||
blindedRecipient?.blocksCommunityMessageRequests == true
|
||||
|
||||
fun legacyBannerRecipient(context: Context): Recipient? = recipient?.let { recipient ->
|
||||
val legacyAddress = storage.getLastLegacyRecipient(recipient.address.serialize()) ?: return@let null
|
||||
return Recipient.from(context, Address.fromSerialized(legacyAddress), false)
|
||||
fun legacyBannerRecipient(context: Context): Recipient? = recipient?.run {
|
||||
storage.getLastLegacyRecipient(address.serialize())?.let { Recipient.from(context, Address.fromSerialized(it), false) }
|
||||
}
|
||||
|
||||
|
||||
@dagger.assisted.AssistedFactory
|
||||
interface AssistedFactory {
|
||||
fun create(threadId: Long, edKeyPair: KeyPair?): Factory
|
||||
|
Loading…
x
Reference in New Issue
Block a user