diff --git a/src/ic_panda_frontend/src/lib/canisters/messagechannel.ts b/src/ic_panda_frontend/src/lib/canisters/messagechannel.ts
index aed3618..bf48dda 100644
--- a/src/ic_panda_frontend/src/lib/canisters/messagechannel.ts
+++ b/src/ic_panda_frontend/src/lib/canisters/messagechannel.ts
@@ -6,6 +6,7 @@ import {
type ChannelInfo,
type ChannelSetting,
type Message,
+ type StateInfo,
type UpdateChannelInput,
type UpdateChannelMemberInput,
type UpdateMySettingInput,
@@ -22,6 +23,7 @@ export {
type ChannelInfo,
type ChannelSetting,
type Message,
+ type StateInfo,
type UpdateChannelInput
} from '$declarations/ic_message_channel/ic_message_channel.did.js'
@@ -79,6 +81,11 @@ export class ChannelAPI {
this.actor = actor
}
+ async get_state(): Promise
@@ -165,14 +165,7 @@
2. A channel can have up to 5 managers and 100 members.
- 3. The channel can store up to 10,000 messages. Once the limit is - reached, old messages must be deleted to send new ones. -
-- 4. Each message can be up to 32 KB in size. -
-- 5. Managers can only remove regular members, not other managers. If + 3. Managers can only remove regular members, not other managers. If the last manager leaves, the channel and all messages will be deleted.
diff --git a/src/ic_panda_frontend/src/lib/components/messages/ChannelMessages.svelte b/src/ic_panda_frontend/src/lib/components/messages/ChannelMessages.svelte index 06daa0d..ec08c17 100644 --- a/src/ic_panda_frontend/src/lib/components/messages/ChannelMessages.svelte +++ b/src/ic_panda_frontend/src/lib/components/messages/ChannelMessages.svelte @@ -13,7 +13,7 @@ encodeCBOR, type AesGcmKey } from '$lib/utils/crypto' - import { scrollOnHooks } from '$lib/utils/window' + import { isActive, scrollOnHooks } from '$lib/utils/window' import { getCurrentTimeString, toDisplayUserInfo, @@ -197,7 +197,8 @@ canister, id, dek, - latestMessageId + 1 + latestMessageId + 1, + isActive ) } } @@ -293,13 +294,13 @@Mute notifications:
@@ -311,11 +323,11 @@Leave channel:
- ICPanda Message is a decentralized end-to-end encrypted messaging - application fully running on the - Internet Computer - blockchain. Key features: -
-+ ICPanda Message is a decentralized end-to-end encrypted messaging + application fully running on the ICPanda DAO, with fully open-source code. It is a trustworthy, secure, verifiable, - and unstoppable Web3 application.
- The password is used only locally to derive the master key with remote - key material; neither the password nor the derived key is stored - remotely. -
-- It is recommended to use - simple and easy-to-remember passwords. -
-- If you forget the password, you will no longer be able to decrypt the - messages! -
-+ 1. The password is used only locally to derive the master key with + remote key material; neither the password nor the derived key is stored + remotely. +
++ 2. It is recommended to use + simple and easy-to-remember passwords. +
++ 3. If you forget the password, you will no longer be able to decrypt + the messages! +
+