Do not display notifications when user status is do not disturb.
authorCamila <hello@camila.codes>
Tue, 16 Mar 2021 19:24:11 +0000 (20:24 +0100)
committerCamila <hello@camila.codes>
Wed, 24 Mar 2021 14:40:05 +0000 (15:40 +0100)
commit974e2fb71888d5171d7291f0964859163260f20c
tree3cb0c1ba10fc38eda522cf4e47494b5f39d284cf
parentf4d8699db85a0e8768a676a6ec556dd31ce22234
Do not display notifications when user status is do not disturb.

- This information is retrieved from the notifications endpoint.
- Add icons for the different pre defined status.
- Make functions available to QML to decide which status icon to display.
- Display the user status icon on the avatar and
move the online/offline connection status to the folder icon.

Signed-off-by: Camila <hello@camila.codes>
20 files changed:
src/gui/accountstate.cpp
src/gui/accountstate.h
src/gui/tray/NotificationHandler.cpp
src/gui/tray/NotificationHandler.h
src/gui/tray/UserLine.qml
src/gui/tray/UserModel.cpp
src/gui/tray/UserModel.h
src/gui/tray/Window.qml
src/gui/userstatus.cpp
src/gui/userstatus.h
src/libsync/networkjobs.cpp
src/libsync/networkjobs.h
src/libsync/theme.cpp
src/libsync/theme.h
theme.qrc
theme/Style/Style.qml
theme/colored/user-status-away.svg [new file with mode: 0644]
theme/colored/user-status-dnd.svg [new file with mode: 0644]
theme/colored/user-status-invisible.svg [new file with mode: 0644]
theme/colored/user-status-online.svg [new file with mode: 0644]