mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-24 07:46:21 +00:00
Introduce equals_our_barejid()
Instead of always repeating the same pattern, introduce a helper function. Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
@@ -629,7 +629,7 @@ sv_ev_incoming_message(ProfMessage* message)
|
||||
char* looking_for_jid = message->from_jid->barejid;
|
||||
|
||||
if (message->is_mam) {
|
||||
if (g_strcmp0(connection_get_barejid(), message->from_jid->barejid) == 0) {
|
||||
if (equals_our_barejid(message->from_jid->barejid)) {
|
||||
if (message->to_jid) {
|
||||
looking_for_jid = message->to_jid->barejid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user