1
0
mirror of https://github.com/TwidereProject/Twidere-Android synced 2025-02-17 04:00:48 +01:00

fixed new conversation group/one_to_one logic

This commit is contained in:
Mariotaku Lee 2017-02-26 12:58:54 +08:00
parent 2d070b11a6
commit f29e2f47c7
No known key found for this signature in database
GPG Key ID: 15C10F89D7C33535

View File

@ -229,9 +229,9 @@ class MessageNewConversationFragment : BaseFragment(), LoaderCallbacks<List<Parc
conversation.id = "${SendMessageTask.TEMP_CONVERSATION_ID_PREFIX}${System.currentTimeMillis()}"
conversation.local_timestamp = System.currentTimeMillis()
conversation.conversation_type = if (selected.size > 1) {
ConversationType.ONE_TO_ONE
} else {
ConversationType.GROUP
} else {
ConversationType.ONE_TO_ONE
}
conversation.participants = (selected + account.user).toTypedArray()
conversation.is_temp = true