From a5adaf57982c44c4e226abfd4a7657be682a63c0 Mon Sep 17 00:00:00 2001 From: Badlop Date: Wed, 15 Apr 2015 11:49:49 +0200 Subject: [PATCH] Revert "Hook on group message" This reverts commit b81250d667c846d30499b5284585597a35c96631. --- src/mod_muc_room.erl | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/mod_muc_room.erl b/src/mod_muc_room.erl index ad77ae661..f381e8458 100644 --- a/src/mod_muc_room.erl +++ b/src/mod_muc_room.erl @@ -2456,8 +2456,6 @@ add_message_to_history(FromNick, FromJID, Packet, StateData) -> Q1 = lqueue_in({FromNick, TSPacket, HaveSubject, calendar:now_to_universal_time(TimeStamp), Size}, StateData#state.history), - ejabberd_hooks:run(offline_group_message_hook, StateData#state.server_host, - [FromJID, FromNick, StateData#state.jid, Packet]), add_to_log(text, {FromNick, Packet}, StateData), StateData#state{history = Q1}.