Merge pull request #498 from Naveen3Singh/feature_group_details
Add ability to change group names
This commit is contained in:
commit
0686611c95
15 changed files with 428 additions and 49 deletions
|
|
@ -1014,6 +1014,16 @@ fun Context.subscriptionManagerCompat(): SubscriptionManager {
|
|||
}
|
||||
}
|
||||
|
||||
fun Context.renameConversation(conversation: Conversation, newTitle: String): Conversation {
|
||||
val updatedConv = conversation.copy(title = newTitle, usesCustomTitle = true)
|
||||
try {
|
||||
conversationsDB.insertOrUpdate(updatedConv)
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
}
|
||||
return updatedConv
|
||||
}
|
||||
|
||||
fun Context.createTemporaryThread(message: Message, threadId: Long = generateRandomId()) {
|
||||
val simpleContactHelper = SimpleContactsHelper(this)
|
||||
val addresses = message.participants.getAddresses()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue