Hedwig.Helpers

Provides utility functions.

Summary

Functions

If the resource is blank, the message is from the MUC room and not a user

It’s best to ignore messages you receive back from yourself to avoid recursive handling

Functions

from_muc_room?(arg1)

If the resource is blank, the message is from the MUC room and not a user.

This happens when you join a room and the room has a topic set. The room will send you a message stanza to notify you of the room topic.

from_self?(from, client)

It’s best to ignore messages you receive back from yourself to avoid recursive handling.