Skip to content

Commit

Permalink
feat(Notifications): handle notifications_merged (#1108)
Browse files Browse the repository at this point in the history
  • Loading branch information
GeopJr authored Sep 10, 2024
1 parent 856932c commit f7a9975
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Services/Accounts/InstanceAccount.vala
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ public class Tuba.InstanceAccount : API.Account, Streamable {
public const string EVENT_DELETE_POST = "delete";
public const string EVENT_NOTIFICATION = "notification";
public const string EVENT_CONVERSATION = "conversation";
public const string EVENT_NOTIFICATIONS_MERGED = "notifications_merged";

public const string KIND_MENTION = "mention";
public const string KIND_REBLOG = "reblog";
Expand Down
1 change: 1 addition & 0 deletions src/Views/Notifications.vala
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public class Tuba.Views.Notifications : Views.Timeline, AccountHolder, Streamabl

filters_changed (false);
stream_event[InstanceAccount.EVENT_NOTIFICATION].connect (on_new_post);
stream_event[InstanceAccount.EVENT_NOTIFICATIONS_MERGED].connect (on_refresh);

#if DEV_MODE
app.dev_new_notification.connect (node => {
Expand Down

0 comments on commit f7a9975

Please sign in to comment.