Video calls: some more cleaup.

This commit is contained in:
aforge
2022-04-22 20:43:10 -07:00
parent 0daef53c87
commit c4d4aa77db
7 changed files with 78 additions and 68 deletions
+5
View File
@@ -209,3 +209,8 @@ export function cancelablePromise(promise) {
export function isVideoCall(mime) {
return mime == 'application/tinode-video-call';
}
// Clips string to the specified length.
export function clipStr(str, length) {
return str && str.substring(0, length);
}