ejabberd - Comments for "MUC not sending clients chat history" https://www.ejabberd.im/node/4618 en Look at the ejabberd Guide, https://www.ejabberd.im/node/4618#comment-57209 <p>Look at the ejabberd Guide, it says:</p> <div class="quote-msg"> <div class="quote-author"><em>ejabberd Guide «3.3.10 mod_muc»</em> wrote:</div> <p>{history_size, Size}<br /> ... define the number of history messages to keep and send to users joining the room.<br /> The default value is 20. </p></div> <p>After reading that, it's easy to answer your questions:</p> <div class="quote-msg"> <div class="quote-author"><em>jessy.diamondman</em> wrote:</div> <p>when I connect to a MUC, I specify that I want 100 messages </p></div> <p>You may request 1 million, but ejabberd by default stores only the last 20 messages :P</p> <div class="quote-msg"> <div class="quote-author"><em>jessy.diamondman</em> wrote:</div> <p>which makes me think that muc must be scrapping or simply ignoring the other messages </p></div> <p>Right, the room forgets the older messages in the FIFO queue of messages.</p> <div class="quote-msg"> <div class="quote-author"><em>jessy.diamondman</em> wrote:</div> <p>if anyone knows hoe to configure muc to send the number of requested messages no matter what, I would greatly appreciate it. </p></div> <p>Look at mod_muc option: history_size. Set it to 100 or higher in ejabberd.cfg</p> <p>BTW, notice that the message history is kept in RAM, not disk: when the room/muc/ejabberd is stopped, the history is lost.</p> Mon, 04 Apr 2011 22:47:00 +0000 mfoss comment 57209 at https://www.ejabberd.im