From a92587cc504364697fc73a119e689219bae26f0f Mon Sep 17 00:00:00 2001 From: Azhar Momin Date: Mon, 19 Jan 2026 23:53:57 +0530 Subject: [PATCH] Fix some typos --- src/libneochat/neochatroom.cpp | 4 ++-- src/libneochat/spacehierarchycache.cpp | 2 +- src/libneochat/spacehierarchycache.h | 2 +- src/settings/NotificationRuleItem.qml | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/libneochat/neochatroom.cpp b/src/libneochat/neochatroom.cpp index c88dafbd0..5d8584e04 100644 --- a/src/libneochat/neochatroom.cpp +++ b/src/libneochat/neochatroom.cpp @@ -159,7 +159,7 @@ NeoChatRoom::NeoChatRoom(Connection *connection, QString roomId, JoinState joinS Q_EMIT childrenHaveHighlightNotificationsChanged(); } }); - connect(&SpaceHierarchyCache::instance(), &SpaceHierarchyCache::spaceNotifcationCountChanged, this, [this](const QStringList &spaces) { + connect(&SpaceHierarchyCache::instance(), &SpaceHierarchyCache::spaceNotificationCountChanged, this, [this](const QStringList &spaces) { if (spaces.contains(id())) { Q_EMIT childrenNotificationCountChanged(); Q_EMIT childrenHaveHighlightNotificationsChanged(); @@ -1121,7 +1121,7 @@ void NeoChatRoom::setPushNotificationState(PushNotificationState::State state) }); } else if (state == PushNotificationState::MentionKeyword) { /** - * To only get notifcations for @ mentions and keywords a room rule with "don't_notify" is set. + * To only get notifications for @ mentions and keywords a room rule with "don't_notify" is set. * * Note - This works becuase a default override rule which catches all user mentions will * take precedent and notify. See https://spec.matrix.org/v1.3/client-server-api/#default-override-rules. Any keywords will also have a similar override diff --git a/src/libneochat/spacehierarchycache.cpp b/src/libneochat/spacehierarchycache.cpp index 5022f0183..8a5b07372 100644 --- a/src/libneochat/spacehierarchycache.cpp +++ b/src/libneochat/spacehierarchycache.cpp @@ -47,7 +47,7 @@ void SpaceHierarchyCache::cacheSpaceHierarchy() if (neoChatRoom != nullptr && (changes & (NeoChatRoom::Change::UnreadStats | NeoChatRoom::Change::Highlights))) { const auto parents = parentSpaces(neoChatRoom->id()); if (parents.count() > 0) { - Q_EMIT spaceNotifcationCountChanged(parents); + Q_EMIT spaceNotificationCountChanged(parents); } } }); diff --git a/src/libneochat/spacehierarchycache.h b/src/libneochat/spacehierarchycache.h index 5f3943f2b..d23301bdf 100644 --- a/src/libneochat/spacehierarchycache.h +++ b/src/libneochat/spacehierarchycache.h @@ -98,7 +98,7 @@ public: Q_SIGNALS: void spaceHierarchyChanged(); void connectionChanged(); - void spaceNotifcationCountChanged(const QStringList &spaces); + void spaceNotificationCountChanged(const QStringList &spaces); void recommendedSpaceHiddenChanged(); private Q_SLOTS: diff --git a/src/settings/NotificationRuleItem.qml b/src/settings/NotificationRuleItem.qml index d335ec092..d8074b304 100644 --- a/src/settings/NotificationRuleItem.qml +++ b/src/settings/NotificationRuleItem.qml @@ -78,7 +78,7 @@ FormCard.AbstractFormDelegate { enabled: root.enabled down: checked onToggled: { - root.notificatonActionChanged(root.notifcationRuleAction()); + root.notificatonActionChanged(root.notificationRuleAction()); } QQC2.ToolTip { @@ -99,7 +99,7 @@ FormCard.AbstractFormDelegate { enabled: (onButton.checked || !root.notificationsOnModifiable) && root.enabled down: checked onToggled: { - root.notificatonActionChanged(root.notifcationRuleAction()); + root.notificatonActionChanged(root.notificationRuleAction()); } QQC2.ToolTip { @@ -121,7 +121,7 @@ FormCard.AbstractFormDelegate { enabled: (onButton.checked || !root.notificationsOnModifiable) && root.enabled down: checked onToggled: { - root.notificatonActionChanged(root.notifcationRuleAction()); + root.notificatonActionChanged(root.notificationRuleAction()); } QQC2.ToolTip { @@ -144,7 +144,7 @@ FormCard.AbstractFormDelegate { } } - function notifcationRuleAction() { + function notificationRuleAction() { if (onButton.checked) { if (noisyButton.checked && highlightButton.checked && root.highlightable) { return PushRuleAction.NoisyHighlight;