Pass around fromPinnedEvents so we can use it to decide whether to forward the event from the main timeline or the pinned events one
This commit is contained in:
parent
d373cbe8a7
commit
7421e6545c
18 changed files with 38 additions and 29 deletions
|
|
@ -23,6 +23,6 @@ interface MediaGalleryEntryPoint : FeatureEntryPoint {
|
|||
interface Callback : Plugin {
|
||||
fun onBackClick()
|
||||
fun viewInTimeline(eventId: EventId)
|
||||
fun forward(eventId: EventId)
|
||||
fun forward(eventId: EventId, fromPinnedEvents: Boolean)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ interface MediaViewerEntryPoint : FeatureEntryPoint {
|
|||
interface Callback : Plugin {
|
||||
fun onDone()
|
||||
fun viewInTimeline(eventId: EventId)
|
||||
fun forwardEvent(eventId: EventId)
|
||||
fun forwardEvent(eventId: EventId, fromPinnedEvents: Boolean)
|
||||
}
|
||||
|
||||
data class Params(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue