We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c23129 commit b5ebf68Copy full SHA for b5ebf68
luci/luci-app-qmodem-next/htdocs/luci-static/resources/view/qmodem/sms_conversation.js
@@ -371,7 +371,12 @@ return view.extend({
371
var unreadIds = [];
372
result.messages.forEach(function(msg) {
373
if (msg.type === 'received' && msg.is_read === false) {
374
- unreadIds.push(msg.id);
+ if (msg.part_ids && msg.part_ids.length > 0) {
375
+ // For multipart messages, mark all parts as read
376
+ unreadIds = unreadIds.concat(msg.part_ids);
377
+ } else {
378
+ unreadIds.push(msg.id);
379
+ }
380
}
381
});
382
if (unreadIds.length > 0) {
0 commit comments