Show alert if publishing of reply fails

This commit is contained in:
silverpill 2023-03-14 16:45:28 +00:00
parent 36a8920367
commit ccffafea21
2 changed files with 8 additions and 0 deletions

View file

@ -10,6 +10,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Enabled audio and video uploads.
### Changed
- Show alert if publishing of reply fails.
### Fixed
- Fixed automatic logout on authentication error.

View file

@ -334,6 +334,10 @@ async function publish() {
} catch (error: any) {
errorMessage = error.message
isLoading = false
if (props.inReplyTo !== null) {
// Show alert if there's no errorbox
alert(errorMessage)
}
return
}
// Refresh editor