Fix folder unread badges count if dialog muted

Fix poll circles
This commit is contained in:
Eduard Kuzmenko 2021-02-02 08:10:20 +02:00
parent b27f8ef385
commit e0b2b1ed39
2 changed files with 18 additions and 13 deletions

View File

@ -550,7 +550,12 @@ export class AppDialogsManager {
let notMutedCount = 0; let notMutedCount = 0;
folder.forEach(dialog => { folder.forEach(dialog => {
const isMuted = appMessagesManager.isDialogMuted(dialog); const isMuted = appMessagesManager.isDialogMuted(dialog);
const value = +!!dialog.unread_count || ((filterId !== 0 || !isMuted) && +dialog.pFlags.unread_mark) || 0; // * unread_mark can be undefined
if(isMuted && filterId === 0) {
return;
}
const value = +!!dialog.unread_count || +dialog.pFlags.unread_mark || 0; // * unread_mark can be undefined
if(isMuted) mutedCount += value; if(isMuted) mutedCount += value;
else notMutedCount += value; else notMutedCount += value;
}); });

View File

@ -1122,6 +1122,18 @@ middle-ellipsis-element {
} }
} }
.progress-ring {
position: absolute;
top: 0;
left: 0;
pointer-events: none;
&__circle {
transition: stroke-dashoffset;
stroke-linecap: round;
}
}
.rlottie, .rlottie-vector { .rlottie, .rlottie-vector {
left: 0; left: 0;
top: 0; top: 0;
@ -1178,18 +1190,6 @@ middle-ellipsis-element {
position: relative; position: relative;
} }
.progress-ring {
position: absolute;
top: 0;
left: 0;
pointer-events: none;
&__circle {
transition: stroke-dashoffset;
stroke-linecap: round;
}
}
.video-time { .video-time {
padding: 1px 6px 2px 7px; padding: 1px 6px 2px 7px;
background-color: rgba(0, 0, 0, .23) !important; background-color: rgba(0, 0, 0, .23) !important;