Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Librem5
lurch
Commits
15df7636
Commit
15df7636
authored
Apr 12, 2017
by
Richard Bayerle
Browse files
Skipped adding recipient's devices if addressed to oneself.
This fixes #47. Also removed a misleading error message.
parent
fe96bf90
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lurch.c
View file @
15df7636
...
...
@@ -1558,11 +1558,8 @@ static void lurch_message_encrypt_im(PurpleConnection * gc_p, xmlnode ** msg_sta
}
addr_l_p
=
lurch_addr_list_add
(
addr_l_p
,
user_dl_p
,
&
own_id
);
addr_l_p
=
lurch_addr_list_add
(
addr_l_p
,
dl_p
,
(
void
*
)
0
);
if
(
!
addr_l_p
)
{
err_msg_dbg
=
g_strdup_printf
(
"failed to malloc address struct"
);
ret_val
=
LURCH_ERR_NOMEM
;
goto
cleanup
;
if
(
g_strcmp0
(
uname
,
to
))
{
addr_l_p
=
lurch_addr_list_add
(
addr_l_p
,
dl_p
,
(
void
*
)
0
);
}
ret_val
=
lurch_msg_finalize_encryption
(
purple_connection_get_protocol_data
(
gc_p
),
axc_ctx_p
,
msg_p
,
addr_l_p
,
msg_stanza_pp
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment