mirror of
https://codeberg.org/cage/tinmop/
synced 2025-01-07 01:41:10 +01:00
- [pleroma-API] added 'fetch-chat-message.
This commit is contained in:
parent
9902d3d430
commit
4046f516f8
@ -126,6 +126,15 @@ media `media'. Returns a `chat-message' instance"
|
|||||||
:media-id (tooter:id (tooter:make-media object
|
:media-id (tooter:id (tooter:make-media object
|
||||||
path-media))))))
|
path-media))))))
|
||||||
|
|
||||||
|
(defgeneric fetch-chat-messages (object chat-id &key min-id))
|
||||||
|
|
||||||
|
(defmethod fetch-chat-messages ((object tooter:client) chat-id &key (min-id nil))
|
||||||
|
(decode-chat-message (tooter:query object
|
||||||
|
(format nil
|
||||||
|
"/api/v1/pleroma/chats/~a/messages"
|
||||||
|
chat-id)
|
||||||
|
:min-id min-id)))
|
||||||
|
|
||||||
(defgeneric delete-chat-message (object chat-id message-id))
|
(defgeneric delete-chat-message (object chat-id message-id))
|
||||||
|
|
||||||
(defmethod delete-chat-message ((object tooter:client) (chat-id string) (message-id string))
|
(defmethod delete-chat-message ((object tooter:client) (chat-id string) (message-id string))
|
||||||
|
@ -1244,6 +1244,7 @@
|
|||||||
:create-chat
|
:create-chat
|
||||||
:get-all-chats
|
:get-all-chats
|
||||||
:post-chat-message
|
:post-chat-message
|
||||||
|
:fetch-chat-messages
|
||||||
:delete-chat-message))
|
:delete-chat-message))
|
||||||
|
|
||||||
(defpackage :api-client
|
(defpackage :api-client
|
||||||
|
Loading…
Reference in New Issue
Block a user