mirror of
https://github.com/ahabhyde/miguelbridge
synced 2025-01-10 06:24:20 +01:00
Patch null messages
It doesn't send null or emptty messages anymore
This commit is contained in:
parent
18e089246a
commit
f6ae8dcb8b
@ -73,7 +73,9 @@ public class Launcher {
|
||||
lastMessageId = getLastMessageId(matrixRoomId);
|
||||
newMessaggio = (String[]) matrixBot.getLastMessage(matrixRoomId);
|
||||
|
||||
if (!newMessaggio[0].equals(matrixBot.readBotUserName()) && !newMessaggio[2].equals(lastMessageId)) {
|
||||
if (!newMessaggio[0].equals(matrixBot.readBotUserName()) &&
|
||||
!newMessaggio[2].equals(lastMessageId) &&
|
||||
!newMessaggio[1].equals("") && newMessaggio[1] != null) {
|
||||
String tgroomid = (String) room.get("tgid");
|
||||
tgBot.cEcho(tgroomid, newMessaggio[0] + ":\n" + newMessaggio[1]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user