Skip to content

Commit 190ee91

Browse files
committed
Increment message count only for PAL message source
Updated GroupInfo::_addMsgPara to call addMsgCount(1) only when the message source type is PAL, preventing unnecessary count increments for other message types.
1 parent 10499b3 commit 190ee91

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/iptux/UiModels.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,9 @@ void GroupInfo::_addMsgPara(const MsgPara& para, time_t now) {
809809
break;
810810
}
811811
}
812-
addMsgCount(1);
812+
if (para.stype == MessageSourceType::PAL) {
813+
addMsgCount(1);
814+
}
813815
}
814816

815817
bool transModelIsFinished(TransModel* model) {

0 commit comments

Comments
 (0)