mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-02-21 06:00:38 +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 {
|
fun Context.renameConversation(conversation: Conversation, newTitle: String): Conversation {
|
||||||
require(conversation.isGroupConversation) {
|
|
||||||
"Can only rename group conversations."
|
|
||||||
}
|
|
||||||
|
|
||||||
val updatedConv = conversation.copy(title = newTitle, usesCustomTitle = true)
|
val updatedConv = conversation.copy(title = newTitle, usesCustomTitle = true)
|
||||||
try {
|
try {
|
||||||
conversationsDB.insertOrUpdate(updatedConv)
|
conversationsDB.insertOrUpdate(updatedConv)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user