Fix event names
This commit is contained in:
parent
8da8d5c8ba
commit
c09a0063a7
4 changed files with 15 additions and 15 deletions
|
@ -4,7 +4,7 @@ import (
|
||||||
"go.mau.fi/mautrix-gmessages/libgm/binary"
|
"go.mau.fi/mautrix-gmessages/libgm/binary"
|
||||||
)
|
)
|
||||||
|
|
||||||
type QRCODE_UPDATED struct {
|
type QR struct {
|
||||||
URL string
|
URL string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,13 +5,13 @@ import (
|
||||||
"go.mau.fi/mautrix-gmessages/libgm/util"
|
"go.mau.fi/mautrix-gmessages/libgm/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CLIENT_READY struct {
|
type ClientReady struct {
|
||||||
Session *util.SessionResponse
|
Session *util.SessionResponse
|
||||||
Conversations []*binary.Conversation
|
Conversations []*binary.Conversation
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewClientReady(session *util.SessionResponse, conversationList *binary.Conversations) *CLIENT_READY {
|
func NewClientReady(session *util.SessionResponse, conversationList *binary.Conversations) *ClientReady {
|
||||||
return &CLIENT_READY{
|
return &ClientReady{
|
||||||
Session: session,
|
Session: session,
|
||||||
Conversations: conversationList.Conversations,
|
Conversations: conversationList.Conversations,
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,23 +1,23 @@
|
||||||
package events
|
package events
|
||||||
|
|
||||||
type BROWSER_ACTIVE struct {
|
type BrowserActive struct {
|
||||||
SessionId string
|
SessionId string
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewBrowserActive(sessionId string) *BROWSER_ACTIVE {
|
func NewBrowserActive(sessionId string) *BrowserActive {
|
||||||
return &BROWSER_ACTIVE{
|
return &BrowserActive{
|
||||||
SessionId: sessionId,
|
SessionId: sessionId,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type BATTERY struct{}
|
type Battery struct{}
|
||||||
|
|
||||||
func NewBattery() *BATTERY {
|
func NewBattery() *Battery {
|
||||||
return &BATTERY{}
|
return &Battery{}
|
||||||
}
|
}
|
||||||
|
|
||||||
type DATA_CONNECTION struct{}
|
type DataConnection struct{}
|
||||||
|
|
||||||
func NewDataConnection() *DATA_CONNECTION {
|
func NewDataConnection() *DataConnection {
|
||||||
return &DATA_CONNECTION{}
|
return &DataConnection{}
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,7 +67,7 @@ func (p *Pairer) RegisterPhoneRelay() (*binary.RegisterPhoneRelayResponse, error
|
||||||
if qrErr != nil {
|
if qrErr != nil {
|
||||||
return nil, qrErr
|
return nil, qrErr
|
||||||
}
|
}
|
||||||
p.client.triggerEvent(&events.QRCODE_UPDATED{URL: url})
|
p.client.triggerEvent(&events.QR{URL: url})
|
||||||
p.startRefreshRelayTask()
|
p.startRefreshRelayTask()
|
||||||
return res, err
|
return res, err
|
||||||
}
|
}
|
||||||
|
@ -113,7 +113,7 @@ func (p *Pairer) RefreshPhoneRelay() {
|
||||||
if qrErr != nil {
|
if qrErr != nil {
|
||||||
panic(qrErr)
|
panic(qrErr)
|
||||||
}
|
}
|
||||||
p.client.triggerEvent(&events.QRCODE_UPDATED{URL: url})
|
p.client.triggerEvent(&events.QR{URL: url})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *Pairer) GetWebEncryptionKey() {
|
func (p *Pairer) GetWebEncryptionKey() {
|
||||||
|
|
Loading…
Reference in a new issue