Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added a group message format choice on the first group send ([#52])

### Fixed
- Fixed group message creation on Xiaomi devices ([#41])
- Partially fixed issue with sending MMS images ([#45])

## [1.8.1] - 2026-07-09
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -534,24 +534,26 @@ class ThreadActivity : SimpleActivity() {

if (participants.isEmpty()) {
val name = intent.getStringExtra(THREAD_TITLE) ?: ""
val number = intent.getStringExtra(THREAD_NUMBER)
if (number == null) {
val numbers = getPhoneNumbersFromIntent()
if (numbers.isEmpty()) {
toast(org.fossify.commons.R.string.unknown_error_occurred)
finish()
return@ensureBackgroundThread
}

val phoneNumber = PhoneNumber(number, 0, "", number)
val contact = SimpleContact(
rawId = 0,
contactId = 0,
name = name,
photoUri = "",
phoneNumbers = arrayListOf(phoneNumber),
birthdays = ArrayList(),
anniversaries = ArrayList()
)
participants.add(contact)
numbers.forEach { number ->
val phoneNumber = PhoneNumber(number, 0, "", number)
val contact = SimpleContact(
rawId = number.hashCode(),
contactId = number.hashCode(),
name = if (numbers.size == 1) name else number,
photoUri = "",
phoneNumbers = arrayListOf(phoneNumber),
birthdays = ArrayList(),
anniversaries = ArrayList()
)
participants.add(contact)
}
}

if (!isRecycleBin) {
Expand Down Expand Up @@ -931,6 +933,7 @@ class ThreadActivity : SimpleActivity() {
hideKeyboard()
Intent(this@ThreadActivity, ThreadActivity::class.java).apply {
putExtra(THREAD_ID, newThreadId)
putExtra(THREAD_NUMBER, Gson().toJson(numbers))
addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TOP)
startActivity(this)
}
Expand Down
Loading