Skip to content

Commit f0f5957

Browse files
committed
fix first time connection established event
1 parent ee0972e commit f0f5957

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ide-common/src/main/kotlin/org/digma/intellij/plugin/persistence/PersistenceState.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ internal open class PersistenceState : PersistentStateComponent<PersistenceData>
3333

3434
//todo: backwards compatibility, remove firstTimeConnectionEstablishedTimestampNew in January 2025
3535
// renamed without the new suffix
36-
myPersistenceData.firstTimeConnectionEstablishedTimestamp = myPersistenceData.firstTimeConnectionEstablishedTimestampNew
36+
if (myPersistenceData.firstTimeConnectionEstablishedTimestampNew != null &&
37+
myPersistenceData.firstTimeConnectionEstablishedTimestamp == null
38+
) {
39+
myPersistenceData.firstTimeConnectionEstablishedTimestamp = myPersistenceData.firstTimeConnectionEstablishedTimestampNew
40+
}
3741
}
3842

3943

0 commit comments

Comments
 (0)