Skip to content

Commit

Permalink
event: add BeeperHSSuborder to unsigned
Browse files Browse the repository at this point in the history
  • Loading branch information
smweber committed Sep 12, 2024
1 parent 08d58d4 commit 31bd49d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion event/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,12 @@ type Unsigned struct {
InviteRoomState []StrippedState `json:"invite_room_state,omitempty"`

BeeperHSOrder int64 `json:"com.beeper.hs.order,omitempty"`
BeeperHSSuborder int64 `json:"com.beeper.hs.suborder,omitempty"`
BeeperFromBackup bool `json:"com.beeper.from_backup,omitempty"`
}

func (us *Unsigned) IsEmpty() bool {
return us.PrevContent == nil && us.PrevSender == "" && us.ReplacesState == "" && us.Age == 0 &&
us.TransactionID == "" && us.RedactedBecause == nil && us.InviteRoomState == nil && us.Relations == nil &&
us.BeeperHSOrder == 0
us.BeeperHSOrder == 0 && us.BeeperHSSuborder == 0
}

0 comments on commit 31bd49d

Please sign in to comment.