mirror of
https://github.com/mjl-/mox.git
synced 2025-07-14 04:14:37 +03:00
webmail: fix displaying a message in separate window if there was no known viewmode (text or html or html with externals)
we were sending a zero value for ViewMode, which the frontend js rejected during parsing. noticed during testing.
This commit is contained in:
@ -181,6 +181,8 @@ func formatFirstLine(r io.Reader) (string, error) {
|
||||
}
|
||||
|
||||
func parsedMessage(log mlog.Log, m store.Message, state *msgState, full, msgitem bool) (pm ParsedMessage, rerr error) {
|
||||
pm.ViewMode = store.ModeText // Valid default, in case this makes it to frontend.
|
||||
|
||||
if full || msgitem {
|
||||
if !state.ensurePart(m, true) {
|
||||
return pm, state.err
|
||||
|
Reference in New Issue
Block a user