Reducing line count by removing some line breaks
This commit is contained in:
parent
a55698c5f4
commit
055ed35fa6
|
@ -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…
Reference in New Issue