[ejabberd] Timestamp in messages for connected clients

Gaurav Jain monkeyfdude at gmail.com
Sun Jan 22 01:56:52 MSK 2017


Thanks. My requirement is:

When user A sends any message (direct or MUC/room) to user B, I want custom
timestamp element in message packet received by B.

Do I need to make changes in user_receive_packet?


On Sat, Jan 21, 2017 at 2:06 PM, Evgeny Khramtsov <xramtsov at gmail.com>
wrote:

> Sat, 21 Jan 2017 12:55:18 -0800
> Gaurav Jain <monkeyfdude at gmail.com> wrote:
>
> > If I understand correctly I need to add a timestamp in
> > user_send_packet hook.
> >
> > Why do I need to do make changes in user_receive packet?
> >
> > Please clarify?
>
> I'm not quite sure what exactly you want, that's why I mentioned both
> hooks.
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20170121/eb08bf08/attachment.html>


More information about the ejabberd mailing list