mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
bridgestate: deduplicate on remote name
Some checks failed
Some checks failed
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
This commit is contained in:
parent
fd89457be8
commit
5f49ca683a
1 changed files with 1 additions and 0 deletions
|
|
@ -187,6 +187,7 @@ func (pong *BridgeState) SendHTTP(ctx context.Context, url, token string) error
|
|||
func (pong *BridgeState) ShouldDeduplicate(newPong *BridgeState) bool {
|
||||
return pong != nil &&
|
||||
pong.StateEvent == newPong.StateEvent &&
|
||||
pong.RemoteName == newPong.RemoteName &&
|
||||
ptr.Val(pong.RemoteProfile) == ptr.Val(newPong.RemoteProfile) &&
|
||||
pong.Error == newPong.Error &&
|
||||
maps.EqualFunc(pong.Info, newPong.Info, reflect.DeepEqual) &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue