Using latest fayec which only sends events to the explicit user with matching token
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Brandon Watson 2023-09-21 11:58:36 -05:00
parent 5e71ad974c
commit e652ea0ad2
3 changed files with 4 additions and 2 deletions

2
go.mod
View File

@ -15,7 +15,7 @@ require go.mau.fi/util v0.0.0-20230805171708-199bf3eec776
require (
gitea.watsonlabs.net/watsonb8/fayec v0.0.3 // indirect
gitea.watsonlabs.net/watsonb8/groupme-lib v0.3.3 // indirect
gitea.watsonlabs.net/watsonb8/groupme-lib v0.3.4 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.1.1 // indirect
github.com/coreos/go-systemd/v22 v22.5.0 // indirect

2
go.sum
View File

@ -18,6 +18,8 @@ gitea.watsonlabs.net/watsonb8/groupme-lib v0.3.2 h1:QJLwAqYoIxhTtZIzMsjZGiLcml6N
gitea.watsonlabs.net/watsonb8/groupme-lib v0.3.2/go.mod h1:htgKMGvk2QieyYT69DWnTLABFc/6ttMlIRIr6zPXNfo=
gitea.watsonlabs.net/watsonb8/groupme-lib v0.3.3 h1:sBmF/10Zk0iyKs1nakHfOeB9BUoSyemCpDUEux+BpMk=
gitea.watsonlabs.net/watsonb8/groupme-lib v0.3.3/go.mod h1:htgKMGvk2QieyYT69DWnTLABFc/6ttMlIRIr6zPXNfo=
gitea.watsonlabs.net/watsonb8/groupme-lib v0.3.4 h1:RnvQlgcBIyTSnrG7E311Zuy/A3avSuBYUb8lDN9sw5Q=
gitea.watsonlabs.net/watsonb8/groupme-lib v0.3.4/go.mod h1:htgKMGvk2QieyYT69DWnTLABFc/6ttMlIRIr6zPXNfo=
github.com/DATA-DOG/go-sqlmock v1.5.0 h1:Shsta01QNfFxHCfpW6YH2STWB0MudeXXEWMr20OEh60=
github.com/DATA-DOG/go-sqlmock v1.5.0/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM=
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=

View File

@ -269,7 +269,7 @@ func (user *User) Connect(gmClient *groupmeext.Client, pushSub *groupme.PushSubs
user.GMID = myuser.ID
}
user.Conn.AddFullHandler(user)
user.Conn.AddFullHandler(user, user.Token)
//TODO: typing notification?
return user.RestoreSession()