Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Morgan McMillian
chatty
Commits
0fbe8160
Commit
0fbe8160
authored
Sep 10, 2021
by
Chris Talbot
Committed by
Guido Gunther
Sep 21, 2021
Browse files
mm-account: Set mms-feature to true when mmsd-tng service loads
parent
63c7e025
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/users/chatty-mm-account.c
View file @
0fbe8160
...
...
@@ -91,6 +91,7 @@ struct _ChattyMmAccount
guint
mm_watch_id
;
gboolean
mm_loaded
;
gboolean
has_mms
;
ChattyMmsd
*
mmsd_struct
;
};
...
...
@@ -978,6 +979,7 @@ chatty_mm_account_init (ChattyMmAccount *self)
self
->
mmsd_struct
=
chatty_mmsd_new
(
self
);
self
->
pending_sms
=
g_hash_table_new_full
(
g_direct_hash
,
g_direct_equal
,
NULL
,
g_object_unref
);
self
->
has_mms
=
FALSE
;
}
ChattyMmAccount
*
...
...
@@ -1251,8 +1253,15 @@ chatty_mm_account_has_mms_feature (ChattyMmAccount *self)
{
g_return_val_if_fail
(
CHATTY_IS_MM_ACCOUNT
(
self
),
FALSE
);
/* TODO */
return
FALSE
;
return
self
->
has_mms
;
}
void
chatty_mm_account_set_mms_feature
(
ChattyMmAccount
*
self
,
gboolean
mms_feature
)
{
g_return_if_fail
(
CHATTY_IS_MM_ACCOUNT
(
self
));
self
->
has_mms
=
mms_feature
;
}
void
...
...
src/users/chatty-mm-account.h
View file @
0fbe8160
...
...
@@ -45,6 +45,8 @@ ChattyChat *chatty_mm_account_start_chat (ChattyMmAccount *sel
void
chatty_mm_account_delete_chat
(
ChattyMmAccount
*
self
,
ChattyChat
*
chat
);
gboolean
chatty_mm_account_has_mms_feature
(
ChattyMmAccount
*
self
);
void
chatty_mm_account_set_mms_feature
(
ChattyMmAccount
*
self
,
gboolean
mms_feature
);
void
chatty_mm_account_send_message_async
(
ChattyMmAccount
*
self
,
ChattyChat
*
chat
,
ChattyMmBuddy
*
buddy
,
...
...
src/users/chatty-mmsd.c
View file @
0fbe8160
...
...
@@ -1305,6 +1305,7 @@ chatty_mmsd_get_service_cb (GObject *service,
}
else
{
g_debug
(
"Got MMSD Service"
);
chatty_mm_account_set_mms_feature
(
self
->
mm_account
,
TRUE
);
self
->
mmsd_service_proxy_watch_id
=
g_dbus_connection_signal_subscribe
(
self
->
connection
,
MMSD_SERVICE
,
...
...
Write
Preview
Markdown
is supported
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