mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
event: add Has method for Mentions
This commit is contained in:
parent
4e180ee36b
commit
edae08383b
1 changed files with 4 additions and 0 deletions
|
|
@ -220,6 +220,10 @@ func (m *Mentions) Add(userID id.UserID) {
|
|||
}
|
||||
}
|
||||
|
||||
func (m *Mentions) Has(userID id.UserID) bool {
|
||||
return m != nil && slices.Contains(m.UserIDs, userID)
|
||||
}
|
||||
|
||||
type EncryptedFileInfo struct {
|
||||
attachment.EncryptedFile
|
||||
URL id.ContentURIString `json:"url"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue