mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 13:17:08 +00:00
participating=true
This commit is contained in:
parent
b95392aec9
commit
dc7973bbb2
@ -76,8 +76,8 @@ export class UserNotificationWatcher {
|
||||
}
|
||||
log.info(`Getting notifications for ${userId} ${stream.lastReadTs}`);
|
||||
try {
|
||||
const since = stream.lastReadTs !== 0 ? `?since=${new Date(stream.lastReadTs).toISOString()}`: "";
|
||||
const response = await stream.octoKit.request(`/notifications${since}`);
|
||||
const since = stream.lastReadTs !== 0 ? `&since=${new Date(stream.lastReadTs).toISOString()}`: "";
|
||||
const response = await stream.octoKit.request(`/notifications?participating=true${since}`);
|
||||
stream.lastReadTs = Date.now();
|
||||
const events: UserNotification[] = await Promise.all(response.data.map(async (event: UserNotification) => {
|
||||
if (event.subject.url) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user