treewide: upgrading to latest mautrix standards

Signed-off-by: Sumner Evans <sumner@beeper.com>
This commit is contained in:
Sumner Evans
2022-10-21 14:02:33 -05:00
parent 9789217745
commit a5ebd6a0f3
35 changed files with 1456 additions and 4390 deletions

View File

@ -16,13 +16,22 @@
package types
// GroupMeID is a WhatsApp JID.
type GroupMeID = string
// GroupMeID is a string that represents a GroupMe ID.
type GroupMeID string
// WhatsAppMessageID is the internal ID of a WhatsApp message.
type WhatsAppMessageID = string
func NewGroupMeID(id string) GroupMeID {
return GroupMeID(id)
}
//AuthToken is the authentication token
type AuthToken = string
func (gmid GroupMeID) String() string {
return string(gmid)
}
type TmpID = GroupMeID
func (gmid GroupMeID) IsEmpty() bool {
return gmid == ""
}
type GroupMeMessageID string
// AuthToken is the authentication token
type AuthToken string