mirror of https://github.com/mautrix/go.git
Fix Unsigned.IsEmpty() when all we have is HSOrder
parent
5dedc9806a
commit
8ba307b28d
|
@ -149,5 +149,6 @@ type Unsigned struct {
|
||||||
|
|
||||||
func (us *Unsigned) IsEmpty() bool {
|
func (us *Unsigned) IsEmpty() bool {
|
||||||
return us.PrevContent == nil && us.PrevSender == "" && us.ReplacesState == "" && us.Age == 0 &&
|
return us.PrevContent == nil && us.PrevSender == "" && us.ReplacesState == "" && us.Age == 0 &&
|
||||||
us.TransactionID == "" && us.RedactedBecause == nil && us.InviteRoomState == nil && us.Relations == nil
|
us.TransactionID == "" && us.RedactedBecause == nil && us.InviteRoomState == nil && us.Relations == nil &&
|
||||||
|
us.BeeperHSOrder == 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue