1
0
mirror of https://github.com/tijder/SmsMatrix.git synced 2024-10-27 18:24:01 +00:00

Set message type to m.text

This commit is contained in:
Alexandre Morignot 2017-10-12 10:11:29 +02:00
parent db893c9d35
commit 69029d44de

View File

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