unused params
This commit is contained in:
parent
5b94540f76
commit
b93200f371
@ -251,7 +251,7 @@ class MessageActionsViewModel @AssistedInject constructor(@Assisted
|
||||
addActionsForSyncedState(timelineEvent, actionPermissions, messageContent, msgType)
|
||||
}
|
||||
timelineEvent.root.sendState == SendState.SENT -> {
|
||||
addActionsForSentNotSyncedState(timelineEvent, actionPermissions, messageContent, msgType)
|
||||
addActionsForSentNotSyncedState(timelineEvent)
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -294,11 +294,7 @@ class MessageActionsViewModel @AssistedInject constructor(@Assisted
|
||||
}
|
||||
}
|
||||
|
||||
private fun ArrayList<EventSharedAction>.addActionsForSentNotSyncedState(timelineEvent: TimelineEvent,
|
||||
actionPermissions: ActionPermissions,
|
||||
messageContent: MessageContent?,
|
||||
msgType: String?) {
|
||||
if (timelineEvent.root.sendState == SendState.SENT) {
|
||||
private fun ArrayList<EventSharedAction>.addActionsForSentNotSyncedState(timelineEvent: TimelineEvent) {
|
||||
// If sent but not synced (synapse stuck at bottom bug)
|
||||
// Still offer action to cancel (will only remove local echo)
|
||||
timelineEvent.root.eventId?.let {
|
||||
@ -309,7 +305,6 @@ class MessageActionsViewModel @AssistedInject constructor(@Assisted
|
||||
|
||||
// TODO sent by me or sufficient power level
|
||||
}
|
||||
}
|
||||
|
||||
private fun ArrayList<EventSharedAction>.addActionsForSyncedState(timelineEvent: TimelineEvent,
|
||||
actionPermissions: ActionPermissions,
|
||||
|
Loading…
x
Reference in New Issue
Block a user