File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
vector/src/main/java/im/vector/app/features/location/live/map Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ ext.libs = [
101
101
],
102
102
element : [
103
103
' opusencoder' : " io.element.android:opusencoder:1.1.0" ,
104
- ' wysiwyg' : " io.element.android:wysiwyg:2.37.4 "
104
+ ' wysiwyg' : " io.element.android:wysiwyg:2.38.2 "
105
105
],
106
106
squareup : [
107
107
' moshi' : " com.squareup.moshi:moshi:$moshi " ,
Original file line number Diff line number Diff line change 93
93
-dontwarn org.commonmark.ext.gfm.strikethrough.Strikethrough
94
94
-dontwarn org.mozilla.javascript.**
95
95
-dontwarn org.slf4j.**
96
+ -dontwarn org.jspecify.annotations.NullMarked
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import org.matrix.android.sdk.api.session.room.model.livelocation.LiveLocationSh
17
17
import org.matrix.android.sdk.api.util.MatrixItem
18
18
import org.matrix.android.sdk.api.util.toMatrixItem
19
19
import javax.inject.Inject
20
+ import kotlin.coroutines.resume
20
21
21
22
class UserLiveLocationViewStateMapper @Inject constructor(
22
23
private val locationPinProvider : LocationPinProvider ,
@@ -32,9 +33,7 @@ class UserLiveLocationViewStateMapper @Inject constructor(
32
33
.toLocationData()
33
34
34
35
when {
35
- userId.isNullOrEmpty() || locationData == null -> continuation.resume(null ) {
36
- // do nothing on cancellation
37
- }
36
+ userId.isNullOrEmpty() || locationData == null -> continuation.resume(null )
38
37
else -> {
39
38
val session = activeSessionHolder.getActiveSession()
40
39
val roomId = liveLocationShareAggregatedSummary.roomId
@@ -57,9 +56,7 @@ class UserLiveLocationViewStateMapper @Inject constructor(
57
56
locationTimestampMillis = locationTimestampMillis,
58
57
showStopSharingButton = userId == session.myUserId
59
58
)
60
- continuation.resume(viewState) {
61
- // do nothing on cancellation
62
- }
59
+ continuation.resume(viewState)
63
60
}
64
61
}
65
62
}
You can’t perform that action at this time.
0 commit comments