mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-02-16 19:50:40 +01:00
Remove conversation type check
This commit is contained in:
parent
51f9662820
commit
35d53ba267
@ -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…
x
Reference in New Issue
Block a user