Skip to content

Commit 66caaa5

Browse files
committed
enable alertsChatDataAvailable hook
1 parent fc4b7ce commit 66caaa5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/code/chat.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,8 @@ window.chat.handleAlerts = function(data, olderMsgs, ascendingTimestampOrder) {
281281
chat.writeDataToHash(data, chat._alerts, undefined, olderMsgs, ascendingTimestampOrder); //NOTE: isPublic passed as undefined - it's nether public or private!
282282
var oldMsgsWereAdded = old !== chat._alerts.oldestTimestamp;
283283

284-
// no hoot for alerts - API change planned here...
285-
// runHooks('alertsChatDataAvailable', {raw: data, result: data.result, processed: chat._alerts.data});
284+
// hook for alerts - API change planned here for next refactor
285+
runHooks('alertsChatDataAvailable', {raw: data, result: data.result, processed: chat._alerts.data});
286286

287287
window.chat.renderAlerts(oldMsgsWereAdded);
288288
}

0 commit comments

Comments
 (0)