Skip to content
Snippets Groups Projects

Send and react to specific event when forum invitation is sent

Merged Mikolai Gütschow requested to merge 472-group-invitation-event into main
3 files
+ 39
2
Compare changes
  • Side-by-side
  • Inline
Files
3
/*
* Briar Desktop
* Copyright (C) 2021-2022 The Briar Project
* Copyright (C) 2021-2023 The Briar Project
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
@@ -64,6 +64,7 @@ import org.briarproject.briar.desktop.contact.ContactItem
import org.briarproject.briar.desktop.contact.loadContactItem
import org.briarproject.briar.desktop.conversation.ConversationRequestItem.RequestType.FORUM
import org.briarproject.briar.desktop.conversation.ConversationRequestItem.RequestType.INTRODUCTION
import org.briarproject.briar.desktop.forums.sharing.ForumInvitationSentEvent
import org.briarproject.briar.desktop.threading.BriarExecutors
import org.briarproject.briar.desktop.utils.KLoggerUtils.e
import org.briarproject.briar.desktop.utils.KLoggerUtils.i
@@ -375,6 +376,9 @@ constructor(
}
}
is ForumInvitationSentEvent ->
if (_contactId.value in e.contactIds) reloadMessages()
is ContactConnectedEvent -> {
if (e.contactId == _contactId.value) {
LOG.i { "Contact connected" }
Loading