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
694f1bc4
Commit
694f1bc4
authored
Apr 15, 2018
by
Richard Bayerle
Browse files
Remove magic number for proper enum.
parent
801b4f70
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lurch.c
View file @
694f1bc4
...
@@ -1691,8 +1691,7 @@ static void lurch_message_encrypt_groupchat(PurpleConnection * gc_p, xmlnode **
...
@@ -1691,8 +1691,7 @@ static void lurch_message_encrypt_groupchat(PurpleConnection * gc_p, xmlnode **
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
,
user_dl_p
,
&
own_id
);
//TODO remove magic number
conv_p
=
purple_find_conversation_with_account
(
PURPLE_CONV_TYPE_CHAT
,
xmlnode_get_attrib
(
*
msg_stanza_pp
,
"to"
),
purple_connection_get_account
(
gc_p
));
conv_p
=
purple_find_conversation_with_account
(
2
,
xmlnode_get_attrib
(
*
msg_stanza_pp
,
"to"
),
purple_connection_get_account
(
gc_p
));
if
(
!
conv_p
)
{
if
(
!
conv_p
)
{
err_msg_dbg
=
g_strdup_printf
(
"could not find groupchat %s"
,
xmlnode_get_attrib
(
*
msg_stanza_pp
,
"to"
));
err_msg_dbg
=
g_strdup_printf
(
"could not find groupchat %s"
,
xmlnode_get_attrib
(
*
msg_stanza_pp
,
"to"
));
goto
cleanup
;
goto
cleanup
;
...
...
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