mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Improved logs
This commit is contained in:
parent
40e9dfc522
commit
037cd71814
3 changed files with 5 additions and 4 deletions
|
|
@ -149,7 +149,7 @@ class ConversationForwardMessageViewModel
|
||||||
|
|
||||||
val friend = model.friend
|
val friend = model.friend
|
||||||
if (friend == null) {
|
if (friend == null) {
|
||||||
Log.i("$TAG Friend is null, using address [${model.address}]")
|
Log.i("$TAG Friend is null, using address [${model.address.asStringUriOnly()}]")
|
||||||
onAddressSelected(model.address)
|
onAddressSelected(model.address)
|
||||||
return@postOnCoreThread
|
return@postOnCoreThread
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -240,7 +240,8 @@ class StartConversationViewModel
|
||||||
val chatRoom = core.createChatRoom(params, localAddress, participants)
|
val chatRoom = core.createChatRoom(params, localAddress, participants)
|
||||||
if (chatRoom != null) {
|
if (chatRoom != null) {
|
||||||
if (chatParams.backend == ChatRoom.Backend.FlexisipChat) {
|
if (chatParams.backend == ChatRoom.Backend.FlexisipChat) {
|
||||||
if (chatRoom.state == ChatRoom.State.Created) {
|
val state = chatRoom.state
|
||||||
|
if (state == ChatRoom.State.Created) {
|
||||||
val id = LinphoneUtils.getChatRoomId(chatRoom)
|
val id = LinphoneUtils.getChatRoomId(chatRoom)
|
||||||
Log.i("$TAG 1-1 conversation [$id] has been created")
|
Log.i("$TAG 1-1 conversation [$id] has been created")
|
||||||
operationInProgress.postValue(false)
|
operationInProgress.postValue(false)
|
||||||
|
|
@ -253,7 +254,7 @@ class StartConversationViewModel
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
Log.i("$TAG Conversation isn't in Created state yet, wait for it")
|
Log.i("$TAG Conversation isn't in Created state yet (state is [$state]), wait for it")
|
||||||
chatRoom.addListener(chatRoomListener)
|
chatRoom.addListener(chatRoomListener)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -167,7 +167,7 @@ abstract class GenericAddressPickerFragment : GenericMainFragment() {
|
||||||
coreContext.postOnCoreThread { core ->
|
coreContext.postOnCoreThread { core ->
|
||||||
val friend = model.friend
|
val friend = model.friend
|
||||||
if (friend == null) {
|
if (friend == null) {
|
||||||
Log.i("$TAG Friend is null, using address [${model.address}]")
|
Log.i("$TAG Friend is null, using address [${model.address.asStringUriOnly()}]")
|
||||||
val fakeFriend = core.createFriend()
|
val fakeFriend = core.createFriend()
|
||||||
fakeFriend.addAddress(model.address)
|
fakeFriend.addAddress(model.address)
|
||||||
onAddressSelected(model.address, fakeFriend)
|
onAddressSelected(model.address, fakeFriend)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue