Skip to content
This repository was archived by the owner on Mar 28, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions pkg/connector/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func (t *TelegramClient) ConnectBackground(ctx context.Context, params *bridgev2
var sender *bridgev2.Ghost
var messageID networkid.MessageID
var messageText, notificationText, notificationTitle string
if data != nil {
if notifs, ok := t.main.Bridge.Matrix.(bridgev2.MatrixConnectorWithNotifications); ok && data != nil {
if data.Aps != nil {
notificationTitle = data.Aps.Alert.Title
notificationText = data.Aps.Alert.Body
Expand Down Expand Up @@ -306,9 +306,6 @@ func (t *TelegramClient) ConnectBackground(ctx context.Context, params *bridgev2
if relatedPortal != nil && data.Custom.MessageID != 0 {
messageID = ids.MakeMessageID(relatedPortal.PortalKey, data.Custom.MessageID)
}
}
notifs, ok := t.main.Bridge.Matrix.(bridgev2.MatrixConnectorWithNotifications)
if ok {
notifs.DisplayNotification(ctx, &bridgev2.DirectNotificationData{
Portal: relatedPortal,
Sender: sender,
Expand Down