1
0
Fork 0
mirror of https://github.com/mautrix/whatsapp.git synced 2026-05-16 02:26:53 -04:00
mautrix-whatsapp/pkg/connector/dbmeta.go

27 lines
530 B
Go
Raw Permalink Normal View History

2024-08-13 14:11:10 +03:00
package connector
import (
"maunium.net/go/mautrix/bridgev2/database"
2024-09-16 15:38:39 +03:00
"go.mau.fi/mautrix-whatsapp/pkg/waid"
2024-08-13 14:11:10 +03:00
)
func (wa *WhatsAppConnector) GetDBMetaTypes() database.MetaTypes {
return database.MetaTypes{
2024-09-06 17:41:26 +03:00
Ghost: func() any {
2024-09-16 15:38:39 +03:00
return &waid.GhostMetadata{}
2024-09-06 17:41:26 +03:00
},
2024-09-10 15:09:08 +03:00
Message: func() any {
2024-09-16 15:38:39 +03:00
return &waid.MessageMetadata{}
2024-09-10 15:09:08 +03:00
},
Reaction: func() any {
2024-09-16 15:38:39 +03:00
return &waid.ReactionMetadata{}
2024-09-10 15:09:08 +03:00
},
2024-09-06 17:41:26 +03:00
Portal: func() any {
2024-09-16 15:38:39 +03:00
return &waid.PortalMetadata{}
2024-09-06 17:41:26 +03:00
},
UserLogin: func() any {
2024-09-16 15:38:39 +03:00
return &waid.UserLoginMetadata{}
2024-09-06 17:41:26 +03:00
},
2024-08-13 14:11:10 +03:00
}
}