Skip to content

Commit 5afa78d

Browse files
committed
Add native trigger check
1 parent f7ab252 commit 5afa78d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

IFTTT SDK/ConnectButtonController.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,11 @@ public class ConnectButtonController {
124124
}
125125

126126
connection?.status = .enabled
127-
ConnectButtonController.update()
127+
128+
// If this connection has native triggers, update native trigger data
129+
if connection?.hasNativeTriggers ?? false {
130+
ConnectButtonController.update()
131+
}
128132

129133
if let connection = connection {
130134
Analytics.shared.track(.StateChange,

0 commit comments

Comments
 (0)