remove log statements

This commit is contained in:
Sharon Kennedy
2020-03-26 19:15:16 -04:00
parent e37502972c
commit cef8acad0c
2 changed files with 8 additions and 6 deletions

View File

@@ -269,7 +269,9 @@ class OcrccBot {
}
sendTranscript(senderId, roomId) {
const transcriptFile = this.activeChatrooms[roomId].transcriptFile;
const transcriptFile = this.activeChatrooms[roomId]
? this.activeChatrooms[roomId].transcriptFile
: false;
if (!transcriptFile) {
this.sendTextMessage(
roomId,
@@ -440,11 +442,6 @@ class OcrccBot {
});
// unencrypted messages
this.client.on("Room.timeline", (event, room, toStartOfTimeline) => {
if (event.getType() === "m.room.message") {
logger.log("info", event);
logger.log("info", this.client.isCryptoEnabled());
logger.log("info", event.isEncrypted());
}
if (event.getType() === "m.room.message" && !event.isEncrypted()) {
this.handleMessageEvent(event);
}