mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
Rename to MoveInviteState
This commit is contained in:
parent
2b0b46eb8b
commit
3579300bf9
1 changed files with 3 additions and 3 deletions
6
sync.go
6
sync.go
|
|
@ -319,12 +319,12 @@ func dontProcessOldEvents(userID id.UserID, resp *RespSync, since string) bool {
|
|||
return true
|
||||
}
|
||||
|
||||
// FillInviteState is a sync handler that moves events from the state event list to the InviteRoomState in the invite event.
|
||||
// MoveInviteState is a sync handler that moves events from the state event list to the InviteRoomState in the invite event.
|
||||
//
|
||||
// To use it, register it with your Syncer, e.g.:
|
||||
//
|
||||
// cli.Syncer.(mautrix.ExtensibleSyncer).OnSync(cli.FillInviteState)
|
||||
func (cli *Client) FillInviteState(resp *RespSync, _ string) bool {
|
||||
// cli.Syncer.(mautrix.ExtensibleSyncer).OnSync(cli.MoveInviteState)
|
||||
func (cli *Client) MoveInviteState(resp *RespSync, _ string) bool {
|
||||
for _, meta := range resp.Rooms.Invite {
|
||||
var inviteState []event.StrippedState
|
||||
var inviteEvt *event.Event
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue