Add PairSuccessful event

This commit is contained in:
Tulir Asokan 2023-06-30 14:48:58 +03:00
parent 2f5c5e2c6d
commit ceedfb1192
2 changed files with 9 additions and 0 deletions

View file

@ -1,5 +1,13 @@
package events
import (
"go.mau.fi/mautrix-gmessages/libgm/binary"
)
type QRCODE_UPDATED struct {
URL string
}
type PairSuccessful struct {
*binary.Container
}

View file

@ -153,4 +153,5 @@ func (p *Pairer) pairCallback(pairData *binary.Container) {
p.client.ttl = pairData.PairDeviceData.WebAuthKeyData.ValidFor
p.client.devicePair = &DevicePair{Mobile: pairData.PairDeviceData.Mobile, Browser: pairData.PairDeviceData.Browser}
p.client.pairer.GetWebEncryptionKey()
p.client.triggerEvent(&events.PairSuccessful{Container: pairData})
}