1
0
mirror of https://github.com/tijder/SmsMatrix.git synced 2024-10-27 18:24:01 +00:00
This commit is contained in:
Gerben Droogers 2017-10-12 11:05:23 +02:00
commit 55949e9097

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++;
} }