Skip to content

Commit 2315cc2

Browse files
committed
Show the timer widget when creating a timer.
Signed-off-by: Katharine Berry <[email protected]>
1 parent 8894889 commit 2315cc2

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

app/src/c/converse/conversation_manager.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ void conversation_manager_add_action(ConversationManager* manager, ConversationA
111111
prv_conversation_updated(manager, true);
112112
}
113113

114+
void conversation_manager_add_widget(ConversationManager* manager, ConversationWidget* widget) {
115+
APP_LOG(APP_LOG_LEVEL_DEBUG, "Adding widget to conversation.");
116+
conversation_add_widget(manager->conversation, widget);
117+
prv_conversation_updated(manager, true);
118+
}
119+
114120
static void prv_handle_app_message_outbox_sent(DictionaryIterator *iterator, void *context) {
115121
APP_LOG(APP_LOG_LEVEL_INFO, "Sent message successfully.");
116122
}

app/src/c/converse/conversation_manager.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ void conversation_manager_destroy(ConversationManager* manager);
3030
void conversation_manager_set_handler(ConversationManager* manager, ConversationManagerUpdateHandler handler, void* context);
3131
void conversation_manager_add_input(ConversationManager* manager, const char* input);
3232
void conversation_manager_add_action(ConversationManager* manager, ConversationAction* action);
33+
void conversation_manager_add_widget(ConversationManager* manager, ConversationWidget* widget);
3334
Conversation* conversation_manager_get_conversation(ConversationManager* manager);
3435

3536
#endif

app/src/pkjs/urls.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
*/
1616

1717
// put your server here.
18-
exports.QUERY_URL = 'wss://bobby-api.rebble.io/query';
19-
exports.QUOTA_URL = 'http://bobby-api.rebble.io/quota';
18+
exports.QUERY_URL = 'ws://192.168.0.193:8080/query';
19+
exports.QUOTA_URL = 'http://192.168.0.193:8080/quota';

0 commit comments

Comments
 (0)