mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-16 12:00:03 +03:00
Reducing line count by removing some line breaks
This commit is contained in:
parent
a55698c5f4
commit
055ed35fa6
2 changed files with 2 additions and 7 deletions
|
@ -30,10 +30,7 @@ class GetTimelineEventUseCase @Inject constructor(
|
|||
) {
|
||||
|
||||
fun execute(roomId: String, eventId: String): Flow<TimelineEvent> {
|
||||
return activeSessionHolder
|
||||
.getActiveSession()
|
||||
.roomService()
|
||||
.getRoom(roomId)
|
||||
return activeSessionHolder.getActiveSession().roomService().getRoom(roomId)
|
||||
?.timelineService()
|
||||
?.getTimelineEventLive(eventId)
|
||||
?.asFlow()
|
||||
|
|
|
@ -28,9 +28,7 @@ class GetEndedPollEventIdUseCase @Inject constructor(
|
|||
|
||||
fun execute(roomId: String, startPollEventId: String): String? {
|
||||
val result = runCatching {
|
||||
activeSessionHolder.getActiveSession()
|
||||
.roomService()
|
||||
.getRoom(roomId)
|
||||
activeSessionHolder.getActiveSession().roomService().getRoom(roomId)
|
||||
?.timelineService()
|
||||
?.getTimelineEventsRelatedTo(RelationType.REFERENCE, startPollEventId)
|
||||
?.find { it.root.isPollEnd() }
|
||||
|
|
Loading…
Add table
Reference in a new issue