Remove Done TODO

This commit is contained in:
Benoit Marty 2020-09-02 12:31:22 +02:00
parent e5e67fbcbb
commit 7c33bf2742
1 changed files with 0 additions and 1 deletions

View File

@ -147,7 +147,6 @@ internal class DefaultSendService @AssistedInject constructor(
override fun resendMediaMessage(localEcho: TimelineEvent): Cancelable? { override fun resendMediaMessage(localEcho: TimelineEvent): Cancelable? {
if (localEcho.root.sendState.hasFailed()) { if (localEcho.root.sendState.hasFailed()) {
// TODO this need a refactoring of attachment sending
val clearContent = localEcho.root.getClearContent() val clearContent = localEcho.root.getClearContent()
val messageContent = clearContent?.toModel<MessageContent>() as? MessageWithAttachmentContent ?: return null val messageContent = clearContent?.toModel<MessageContent>() as? MessageWithAttachmentContent ?: return null