Add message handler for m.emote
This commit is contained in:
parent
1f1bc94bbd
commit
51cbda451c
1
.gitignore
vendored
1
.gitignore
vendored
@ -84,3 +84,4 @@ Makefile.in
|
|||||||
/src/matrix-glib-0.0.pc
|
/src/matrix-glib-0.0.pc
|
||||||
/src/matrix-message-base.c
|
/src/matrix-message-base.c
|
||||||
/src/matrix-message-text.c
|
/src/matrix-message-text.c
|
||||||
|
/src/matrix-message-emote.c
|
||||||
|
@ -52,6 +52,7 @@ libmatrix_glib_0_0_la_VALA_SOURCES = \
|
|||||||
matrix-event-call-hangup.vala \
|
matrix-event-call-hangup.vala \
|
||||||
matrix-message-base.vala \
|
matrix-message-base.vala \
|
||||||
matrix-message-text.vala \
|
matrix-message-text.vala \
|
||||||
|
matrix-message-emote.vala \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
AM_CPPFLAGS += \
|
AM_CPPFLAGS += \
|
||||||
|
@ -225,6 +225,9 @@ matrix_event_types_ctor(void)
|
|||||||
matrix_message_register_type("m.text",
|
matrix_message_register_type("m.text",
|
||||||
MATRIX_MESSAGE_TYPE_TEXT,
|
MATRIX_MESSAGE_TYPE_TEXT,
|
||||||
NULL);
|
NULL);
|
||||||
|
matrix_message_register_type("m.emote",
|
||||||
|
MATRIX_MESSAGE_TYPE_EMOTE,
|
||||||
|
NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
28
src/matrix-message-emote.vala
Normal file
28
src/matrix-message-emote.vala
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of matrix-glib-sdk
|
||||||
|
*
|
||||||
|
* matrix-glib-sdk is free software: you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
* License as published by the Free Software Foundation, either
|
||||||
|
* version 3 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* matrix-glib-sdk is distributed in the hope that it will be
|
||||||
|
* useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||||
|
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
* See the GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with matrix-glib-sdk. If not, see
|
||||||
|
* <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The emote message type
|
||||||
|
*
|
||||||
|
* This message is similar to `m.text` except that the sender is
|
||||||
|
* 'performing' the action contained in the `body` key, similar to
|
||||||
|
* `/me` in IRC. This message should be prefixed by the name of the
|
||||||
|
* sender. This message could also be represented in a different
|
||||||
|
* colour to distinguish it from regular `m.text` messages.
|
||||||
|
*/
|
||||||
|
public class Matrix.Message.Emote : Matrix.Message.Base {}
|
Loading…
Reference in New Issue
Block a user