1
0
mirror of https://github.com/tijder/SmsMatrix.git synced 2024-09-28 13:50:42 +00:00

Merge pull request #5 from erdnaxeli/msgType

Set message type to m.text
This commit is contained in:
tijder 2017-10-12 10:58:48 +02:00 committed by GitHub
commit 4b52a3028e

View File

@ -154,7 +154,7 @@ public class Matrix {
public void SendMesageToRoom(Room room, String body) {
Message msg = new Message();
msg.body = body;
msg.msgtype = "m.mesage";
msg.msgtype = "m.text";
session.getRoomsApiClient().sendMessage(String.valueOf(transaction), room.getRoomId(), msg, new SimpleApiCallback<Event>());
transaction++;
}