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

View File

@ -0,0 +1,5 @@
@help-bot:rhok.space [17:39:36]: Facilitator Demo Account has joined the chat.
@ocrcc-facilitator-demo:rhok.space [17:39:48]: heyooo
@help-bot:rhok.space [17:41:13]: Bleep bloop
@help-bot:rhok.space [17:41:21]: 20 Mar 2020 - 17:39:35 - !HyOQxerRxiwlUBolJA:rhok.space.txt
@95326bf0-cd5e-45d7-be64-cb413d37d929:rhok.space [17:42:01]: hi