Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
facebook
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
mautrix
facebook
Commits
edd0d917
Commit
edd0d917
authored
4 years ago
by
Tulir Asokan
Browse files
Options
Downloads
Patches
Plain Diff
Allow unknown values for AttachmentType and add MessageLiveLocation
parent
d889776d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
maufbapi/types/graphql/responses.py
+3
-2
3 additions, 2 deletions
maufbapi/types/graphql/responses.py
with
3 additions
and
2 deletions
maufbapi/types/graphql/responses.py
+
3
−
2
View file @
edd0d917
...
...
@@ -19,7 +19,7 @@ from yarl import URL
from
attr
import
dataclass
import
attr
from
mautrix.types
import
SerializableEnum
,
SerializableAttrs
from
mautrix.types
import
SerializableEnum
,
ExtensibleEnum
,
SerializableAttrs
from
..common
import
ThreadFolder
,
MessageUnsendability
...
...
@@ -177,13 +177,14 @@ class Dimensions(SerializableAttrs['Dimensions']):
y
:
int
class
AttachmentType
(
Serializa
bleEnum
):
class
AttachmentType
(
Extensi
bleEnum
):
IMAGE
=
"
MessageImage
"
ANIMATED_IMAGE
=
"
MessageAnimatedImage
"
FILE
=
"
MessageFile
"
AUDIO
=
"
MessageAudio
"
VIDEO
=
"
MessageVideo
"
LOCATION
=
"
MessageLocation
"
LIVE_LOCATION
=
"
MessageLiveLocation
"
EXTERNAL_URL
=
"
ExternalUrl
"
STORY
=
"
Story
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment