Add no channel beep patch to tg
This commit is contained in:
parent
bb7563a5b5
commit
463bd6aff0
@ -1 +1,2 @@
|
|||||||
EBUILD telegram-cli-9999.ebuild 952 SHA256 170496c65b36effe1f8459503616f26216b9a214b01cbcecb0f8945fb6f742b2 SHA512 084abcf5bf17a509f92122a1f2990d0b8ecb7e503a7aff67c1dd0e61fad5c9b68ef3450cbff94e766e759b544f9e047e373a78e426aa427594d3b8ae7233efd9 WHIRLPOOL 9c342b8d1d90f444beff0343a564f1db4b14ea7bf157a7f139c4bfc2340bd72b60c474cca2778c96695892a0610941d4683e63c519b587bdb5ba1e0dc894511d
|
AUX tg-no-channel-beep.patch 468 SHA256 9aa2cf0e80ca17c3d5b5559196f0862be2906e25d3d0d7dda76027748123ea14 SHA512 4f982fa3900529d42e7d05c4b7b653e9ba8881dcaaeb087aa0a90607bff8691abfaedae6fd020e05549f1b619fa9ffa78b61ec910542e2a8e51c889a8242532f WHIRLPOOL cde44033d21f74c18c32493220ef20036ccad490d1f7f2172bf9513fff15c6e34fa000b76742df9b4ac1d6b5a86c3e7014a6e1eb0d6e3fb87f648351bac36cbf
|
||||||
|
EBUILD telegram-cli-9999.ebuild 1059 SHA256 ef451941f01b48981855c071766088c270b8d32be2215d6b5c643385395387bd SHA512 1970191f4df5c7185df89c7c278514eb7e50814b680c534fe85d5fd034c1f351395b7df2d831057ae798467f309a4d75382ce109a2afd26f5b8e29d958718697 WHIRLPOOL 6d76b7612fe15ac095cffaa32aa67aa10a6cef48a185fa93a3a9f5565a640045593670ddebfb20b2d3319f6e369c230990286c7c7d64da10b6288cfb9646d3b6
|
||||||
|
13
net-im/telegram-cli/files/tg-no-channel-beep.patch
Normal file
13
net-im/telegram-cli/files/tg-no-channel-beep.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/interface.c b/interface.c
|
||||||
|
index f78619a..bea40de 100644
|
||||||
|
--- a/interface.c
|
||||||
|
+++ b/interface.c
|
||||||
|
@@ -3061,7 +3061,7 @@ void print_message_gw (struct tgl_state *TLSR, struct tgl_message *M) {
|
||||||
|
if (tgl_get_peer_type (M->to_id) == TGL_PEER_ENCR_CHAT) {
|
||||||
|
write_secret_chat_file ();
|
||||||
|
}
|
||||||
|
- if (alert_sound) {
|
||||||
|
+ if (alert_sound && tgl_get_peer_type (M->to_id) != TGL_PEER_CHANNEL) {
|
||||||
|
play_sound ();
|
||||||
|
}
|
||||||
|
if (disable_output && !notify_ev) { return; }
|
@ -24,6 +24,11 @@ DEPEND="sys-libs/zlib
|
|||||||
json? ( dev-libs/jansson )
|
json? ( dev-libs/jansson )
|
||||||
python? ( dev-lang/python )"
|
python? ( dev-lang/python )"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
einfo "Patching so channels don't beep"
|
||||||
|
epatch "${FILESDIR}/tg-no-channel-beep.patch"
|
||||||
|
}
|
||||||
|
|
||||||
src_unpack() {
|
src_unpack() {
|
||||||
git-2_src_unpack
|
git-2_src_unpack
|
||||||
cd $EGIT_SOURCEDIR
|
cd $EGIT_SOURCEDIR
|
||||||
|
Loading…
Reference in New Issue
Block a user