Remove conversation type check
This commit is contained in:
parent
51f9662820
commit
35d53ba267
1 changed files with 0 additions and 4 deletions
|
|
@ -1024,10 +1024,6 @@ fun Context.subscriptionManagerCompat(): SubscriptionManager {
|
|||
}
|
||||
|
||||
fun Context.renameConversation(conversation: Conversation, newTitle: String): Conversation {
|
||||
require(conversation.isGroupConversation) {
|
||||
"Can only rename group conversations."
|
||||
}
|
||||
|
||||
val updatedConv = conversation.copy(title = newTitle, usesCustomTitle = true)
|
||||
try {
|
||||
conversationsDB.insertOrUpdate(updatedConv)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue