Updates to replyTo feature.

This commit is contained in:
aforge
2021-08-29 00:40:23 +03:00
parent 9660b9016b
commit 53936f11e0
8 changed files with 270 additions and 228 deletions
+7
View File
@@ -2,6 +2,13 @@
import Tinode from 'tinode-sdk';
import { stringHash } from './strformat.js';
// User avatar letter color id.
export function letterTileColor(userId) {
return Math.abs(stringHash(userId)) % 16;
}
// Make shortcut icon appear with a green dot + show unread count in title.
export function updateFavicon(count) {
const oldIcon = document.getElementById('shortcut-icon');