SHA256
Channels UI + read/unread + unique views + style polish
This commit is contained in:
@@ -756,6 +756,17 @@ export class AuthService {
|
||||
return response.payload || {};
|
||||
}
|
||||
|
||||
async markChannelMessagesSeen({ login, channel, messages }) {
|
||||
const cleanLogin = String(login || '').trim();
|
||||
const refs = Array.isArray(messages) ? messages : [];
|
||||
const payload = { channel, messages: refs };
|
||||
if (cleanLogin) payload.login = cleanLogin;
|
||||
|
||||
const response = await this.ws.request('MarkChannelMessagesSeen', payload);
|
||||
if (response.status !== 200) throw opError('MarkChannelMessagesSeen', response);
|
||||
return response.payload || {};
|
||||
}
|
||||
|
||||
async addBlockSigned({ login, storagePwd, msgType, msgSubType, msgVersion = 1, bodyBytes }) {
|
||||
const cleanLogin = (login || '').trim();
|
||||
if (!cleanLogin) throw new Error('Missing login for AddBlock');
|
||||
|
||||
Reference in New Issue
Block a user