mirror of
https://github.com/status-im/status-go.git
synced 2025-01-18 10:42:07 +00:00
1340a55c1d
Changes applied here introduce backing up profile data (display name and identity images) to waku and fetch them from waku. Information about those data is sent as a separate signal to a client via `sync.from.waku.profile` signal. New signal `sync.from.waku.progress` is introduced which will be used to notify a client about the progress of fetching data from waku.
27 lines
762 B
Go
27 lines
762 B
Go
package signal
|
|
|
|
import "encoding/json"
|
|
|
|
const (
|
|
// EventWakuFetchingBackupProgress is triggered during the syncing from waku
|
|
EventWakuFetchingBackupProgress = "waku.fetching.backup.progress"
|
|
|
|
// EventSyncFromWakuProfile is triggered during the syncing user profile from waku
|
|
EventWakuBackedUpProfile = "waku.backedup.profile"
|
|
|
|
// EventWakuBackedUpSettings is triggered during the syncing user settings from waku
|
|
EventWakuBackedUpSettings = "waku.backedup.settings"
|
|
)
|
|
|
|
func SendWakuFetchingBackupProgress(obj json.Marshaler) {
|
|
send(EventWakuFetchingBackupProgress, obj)
|
|
}
|
|
|
|
func SendWakuBackedUpProfile(obj json.Marshaler) {
|
|
send(EventWakuBackedUpProfile, obj)
|
|
}
|
|
|
|
func SendWakuBackedUpSettings(obj json.Marshaler) {
|
|
send(EventWakuBackedUpSettings, obj)
|
|
}
|