mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-17 02:15:17 +08:00
import timber and use .roomService()
This commit is contained in:
parent
f90078c593
commit
f949c517b6
@ -23,6 +23,7 @@ import im.vector.app.features.call.webrtc.WebRtcCallManager
|
|||||||
import im.vector.app.features.createdirect.DirectRoomHelper
|
import im.vector.app.features.createdirect.DirectRoomHelper
|
||||||
import org.matrix.android.sdk.api.session.Session
|
import org.matrix.android.sdk.api.session.Session
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
import timber.log.Timber
|
||||||
|
|
||||||
class DialPadLookup @Inject constructor(
|
class DialPadLookup @Inject constructor(
|
||||||
private val session: Session,
|
private val session: Session,
|
||||||
@ -47,7 +48,7 @@ class DialPadLookup @Inject constructor(
|
|||||||
if (nativeUserId == session.myUserId) {
|
if (nativeUserId == session.myUserId) {
|
||||||
throw Failure.NumberIsYours
|
throw Failure.NumberIsYours
|
||||||
}
|
}
|
||||||
var nativeRoomId = session.getExistingDirectRoomWithUser(nativeUserId)
|
var nativeRoomId = session.roomService().getExistingDirectRoomWithUser(nativeUserId)
|
||||||
if (nativeRoomId == null) {
|
if (nativeRoomId == null) {
|
||||||
// if there is no existing native room with the existing native user,
|
// if there is no existing native room with the existing native user,
|
||||||
// just create a DM with the native user
|
// just create a DM with the native user
|
||||||
|
Loading…
Reference in New Issue
Block a user