Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
No results found
Show changes
Showing
with 1886 additions and 1 deletion
public/assets/splashscreens/ipadpro2_splash.png

110 KiB

public/assets/splashscreens/ipadpro3_splash.png

80.9 KiB

public/assets/splashscreens/iphone5_splash.png

21.6 KiB

public/assets/splashscreens/iphone6_splash.png

26.9 KiB

public/assets/splashscreens/iphoneplus_splash.png

58.9 KiB

public/assets/splashscreens/iphonex_splash.png

57.7 KiB

public/assets/splashscreens/iphonexr_splash.png

34.9 KiB

public/assets/splashscreens/iphonexsmax_splash.png

70.3 KiB

#!/bin/bash
version=$(cat VERSION)
docker build -t revoltchat/client:${version} . &&
docker tag revoltchat/client:${version} revoltchat/client:latest &&
docker push revoltchat/client:${version} &&
docker push revoltchat/client:latest
This diff is collapsed.
import call_join from "./call_join.mp3";
import call_leave from "./call_leave.mp3";
import message from "./message.mp3";
import outbound from "./outbound.mp3";
const SoundMap: { [key in Sounds]: string } = {
message,
outbound,
call_join,
call_leave,
};
export type Sounds = "message" | "outbound" | "call_join" | "call_leave";
export const SOUNDS_ARRAY: Sounds[] = [
"message",
"outbound",
"call_join",
"call_leave",
];
export function playSound(sound: Sounds) {
const file = SoundMap[sound];
const el = new Audio(file);
try {
el.play();
} catch (err) {
console.error("Failed to play audio file", file, err);
}
}