我想对mark_seen
的特定活动应用mark_read
和getstream.io
,但计数器仍然相同。这是我的代码:
const notification = client.feed('NOTIFICATION', '1');
notification.get({ mark_seen: ['1111111-f22d-333-33-0000001f'] }); //getstream activity id
更新
这是我的获取流响应:
{
"results": [
{
"activities": [
{
"actor": "user:1",
"foreign_id": "POST:50",
"id": "00000000-0000-11e0-8000-800001be0000",
"object": "POST:50",
"origin": null,
"target": "USER:1",
"time": "2018-01-12T14:08:03.000000",
"verb": "CREATE"
}
],
"activity_count": 1,
"actor_count": 1,
"created_at": "2018-01-12T14:08:12.324882",
"group": "user:1_POST:50",
"id": "111111bb-f1a1-11e1-1111-111111111b11.user:1_POST:50",
"is_read": false,
"is_seen": false,
"updated_at": "2018-01-12T14:08:12.324882",
"verb": "CREATE"
}
],
"next": "",
"duration": "25.85ms",
"unseen": 3,
"unread": 3
}
我正在使用activity.id
将我的活动标记为已读,但它无效。
但是,当我使用id
(组ID)时,它可以(并递减计数器)。