forked from Silverfish/proton-bridge
Mitigate Apple Mail re-sync (both bodies and meta info)
This commit is contained in:
@ -157,12 +157,15 @@ func New( // nolint[funlen]
|
||||
}
|
||||
|
||||
apiConfig := pmapi.GetAPIConfig(configName, constants.Version)
|
||||
apiConfig.NoConnectionHandler = func() {
|
||||
apiConfig.ConnectionOffHandler = func() {
|
||||
eventListener.Emit(events.InternetOffEvent, "")
|
||||
}
|
||||
apiConfig.ConnectionHandler = func() {
|
||||
apiConfig.ConnectionOnHandler = func() {
|
||||
eventListener.Emit(events.InternetOnEvent, "")
|
||||
}
|
||||
apiConfig.UpgradeApplicationHandler = func() {
|
||||
eventListener.Emit(events.UpgradeApplicationEvent, "")
|
||||
}
|
||||
cm := pmapi.NewClientManager(apiConfig)
|
||||
cm.SetRoundTripper(pmapi.GetRoundTripper(cm, listener))
|
||||
cm.SetCookieJar(jar)
|
||||
|
||||
Reference in New Issue
Block a user