mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 15:46:44 +00:00
GODT-35: New pmapi client and manager using resty
This commit is contained in:
@ -173,10 +173,14 @@ func processMessageTableCell(column, cellValue, username string, message *pmapi.
|
||||
case "body":
|
||||
message.Body = cellValue
|
||||
case "read":
|
||||
unread := 1
|
||||
if cellValue == "true" {
|
||||
unread = 0
|
||||
var unread pmapi.Boolean
|
||||
|
||||
if cellValue == "true" { //nolint[goconst]
|
||||
unread = false
|
||||
} else {
|
||||
unread = true
|
||||
}
|
||||
|
||||
message.Unread = unread
|
||||
case "starred":
|
||||
if cellValue == "true" {
|
||||
|
||||
Reference in New Issue
Block a user