Skip to content

Commit

Permalink
fix: sending audio files crashes the app (#1787)
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamadJaara authored May 15, 2023
1 parent c81e431 commit fe907d1
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ class MessageComposerViewModel @Inject constructor(
}
}

AttachmentType.GENERIC_FILE -> {
AttachmentType.GENERIC_FILE,
AttachmentType.AUDIO -> {
// The max limit for sending assets changes between user types. Currently, is25MB for free users, and 100MB for
// users that belong to a team
val assetLimitInBytes = getAssetLimitInBytes()
Expand All @@ -284,8 +285,6 @@ class MessageComposerViewModel @Inject constructor(
}
}
}

AttachmentType.AUDIO -> TODO()
}
}
}
Expand Down

0 comments on commit fe907d1

Please sign in to comment.