Fix notifications not hiding

This commit is contained in:
LAGonauta 2021-03-15 08:38:03 -03:00
parent c60e0a828f
commit 426f997f9b
2 changed files with 3 additions and 1 deletions

View file

@ -104,5 +104,5 @@ void winrt_windows_ui_notifications_toast_notifier_Hide(winrtWindowsUINotificati
g_return_if_fail (WINRT_IS_WINDOWS_UI_NOTIFICATIONS_TOAST_NOTIFIER (self)); g_return_if_fail (WINRT_IS_WINDOWS_UI_NOTIFICATIONS_TOAST_NOTIFIER (self));
g_return_if_fail (WINRT_IS_WINDOWS_UI_NOTIFICATIONS_TOAST_NOTIFICATION (toast_notification)); g_return_if_fail (WINRT_IS_WINDOWS_UI_NOTIFICATIONS_TOAST_NOTIFICATION (toast_notification));
return winrt_windows_ui_notifications_toast_notifier_get_internal(self)->Hide(*winrt_windows_ui_notifications_toast_notification_get_internal(toast_notification)); winrt_windows_ui_notifications_toast_notifier_get_internal(self)->Hide(*winrt_windows_ui_notifications_toast_notification_get_internal(toast_notification));
} }

View file

@ -219,6 +219,8 @@ namespace Dino.Plugins.WindowsNotification {
notifications[notification_id] = notification; notifications[notification_id] = notification;
notifier.Show(notification); notifier.Show(notification);
content_notifications.add(notification_id);
} }
private string? get_avatar(Conversation conversation) { private string? get_avatar(Conversation conversation) {