Skip to content

Commit

Permalink
Remove chatId condition
Browse files Browse the repository at this point in the history
  • Loading branch information
nicodh committed Dec 15, 2024
1 parent 333f816 commit c173f6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/frontend/src/system-integration/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async function showNotification(
const summaryText = eventText ?? notificationInfo.summaryText
const chatName = notificationInfo.chatName
let icon = getNotificationIcon(notificationInfo)
if (isWebxdcInfo && chatId === -1) {
if (isWebxdcInfo) {
/**
* messageId may refer to a webxdc message OR a wexdc-info-message!
*
Expand Down Expand Up @@ -248,7 +248,7 @@ async function flushNotifications(accountId: number) {
queuedNotifications = []

for await (const n of notifications) {
if (n.isWebxdcInfo) {
if (n.chatId === -1) {
// get real chatId of the webxdc message
const message = await BackendRemote.rpc.getMessage(accountId, n.messageId)
n.chatId = message.chatId
Expand Down Expand Up @@ -293,7 +293,7 @@ async function flushNotifications(accountId: number) {
accountId,
chatId,
messageId,
isWebxdcInfo ?? false,
isWebxdcInfo,
eventText
)
}
Expand Down

0 comments on commit c173f6a

Please sign in to comment.