[
  {
    "path": ".gitignore",
    "content": ".idea/*\n.DS_Store\nThumbs.db\nbuild/outputs\nbuild/releases\nbuild/dist\nnpm-debug.log\nnode_modules\nelectron-*\n*.mo\n.pc\n*.log\n*.substvars\n*.EX\ndummy.tar.bz2\nrpmbuild/\nbuild/whatsapp-desktop-*\n"
  },
  {
    "path": "ISSUE_TEMPLATE.md",
    "content": "### System details\n\n* OS: [write here your operative system name, version, language]\n* App Version: [write here the app version, or \"github\" if you're using latest from github]\n* If Linux, Desktop Environment: [write here your desktop environment if on Linux, otherwise leave it blank]\n\n### Expected behavior\n\n[write here what you were expecting from an action (specified below)]\n\n### Actual behavior\n\n[write here what really happened]\n\n### Step to reproduce the behavior\n\n[write here steps to do in order to reproduce the bad behavior, so we can trace and resolve the issue quickly]\n"
  },
  {
    "path": "LICENSE",
    "content": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.  We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors.  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights.  Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received.  You must make sure that they, too, receive\nor can get the source code.  And you must show them these terms so they\nknow their rights.\n\n  Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n  For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software.  For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n  Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so.  This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software.  The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable.  Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts.  If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n  Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary.  To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Use with the GNU Affero General Public License.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    {one line to give the program's name and a brief idea of what it does.}\n    Copyright (C) {year}  {name of author}\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n    {project}  Copyright (C) {year}  {fullname}\n    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n<http://www.gnu.org/licenses/>.\n\n  The GNU General Public License does not permit incorporating your program\ninto proprietary programs.  If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.  But first, please read\n<http://www.gnu.org/philosophy/why-not-lgpl.html>.\n"
  },
  {
    "path": "README.md",
    "content": "![downloads](https://img.shields.io/github/downloads/oOthkOo/whatsapp-desktop/total?style=for-the-badge)\n\n# WhatsApp Desktop\n\n![screenshot](https://github.com/oOthkOo/whatsapp-desktop/blob/master/screenshots/whatsapp-screen.png \"Main Window\")\n\nUnofficial WhatsApp Desktop Client for OSX, Linux and Windows. Build with [Electron](http://electron.atom.io/).  \n\nThis is **NOT** an official product. This project does not attempt to reverse engineer the WhatsApp API or attempt to reimplement any part of the WhatsApp client. Any communication between the user and WhatsApp servers is handled by official WhatsApp Web itself; this is just a native wrapper for WhatsApp Web, like a browser.\n\nOriginal versions of WhatsApp Desktop was written by:\n* @bcalik : https://github.com/bcalik/Whatsapp-Desktop\n* @Enrico204 : https://github.com/Enrico204/Whatsapp-Desktop\n\n## Features\n\n* Cross platform (OSX, Windows x64, Linux ia32/x64 and ARM v7l)\n* Native notifications\n* System tray icon\n* Open links in browser\n* Badge with the number of notifications in the dock/taskbar\n* Dock icon bounces when a new message is received\n* Focus on contact search input via CMD+F (WIN+F)\n* Phone info window (s/w versions, battery status, etc)\n* Auto-launch on login\n* Start minimized to tray icon\n* Logging system (log to console and *userData*/log.log)\n* Apply custom CSS stylesheet\n* Auto-hide menu bar (Windows, Linux)\n* Disabling GPU rendering (useful when dealing with bugged video drivers)\n* A couple of things can be configured:\n  * Toggle avatar visibility\n  * Toggle preview of the messages visibility\n  * Set the size for the media thumbs\n  * Proxy settings connect to WhatsApp web\n\n## Download WhatsApp\n\n* Windows 10/11 - [Download](https://github.com/oOthkOo/whatsapp-desktop/releases/latest/download/WhatsApp-win32-x64.zip) - ![Stats](https://img.shields.io/github/downloads/oOthkOo/whatsapp-desktop/latest/WhatsApp-win32-x64.zip?style=flat-square)\n* Mac OSX - [Download](https://github.com/oOthkOo/whatsapp-desktop/releases/latest/download/WhatsApp-darwin-x64.zip) - ![Stats](https://img.shields.io/github/downloads/oOthkOo/whatsapp-desktop/latest/WhatsApp-darwin-x64.zip?style=flat-square)\n* Ubuntu (32 bits) - [Download](https://github.com/oOthkOo/whatsapp-desktop/releases/latest/download/whatsapp-linux-ia32.deb) - ![Stats](https://img.shields.io/github/downloads/oOthkOo/whatsapp-desktop/latest/whatsapp-linux-ia32.deb?style=flat-square)\n* Ubuntu (64 bits) - [Download](https://github.com/oOthkOo/whatsapp-desktop/releases/latest/download/whatsapp-linux-x64.deb) - ![Stats](https://img.shields.io/github/downloads/oOthkOo/whatsapp-desktop/latest/whatsapp-linux-x64.deb?style=flat-square)\n\nDonations\n-----\n\n:heart: Donations are always welcome :heart:.\n\n### Buymeacoffee\n\n[<img height=\"55px\" src=\"https://raw.githubusercontent.com/oOthkOo/oOthkOo/main/assets/bmac-btn.svg\">](https://buymeacoffee.com/oothkoo)\n\n### Crypto\n\nCoins | Symbols | Addresses\n--- | --- | ---\n<img width=\"32\" src=\"https://raw.githubusercontent.com/oOthkOo/oOthkOo/main/assets/btc.svg\" alt=\"Bitcoin\"/> | BTC | 3B52fbzNFQTaKZxWf5GrCUsASD2UP8na4A\n<img width=\"32\" src=\"https://raw.githubusercontent.com/oOthkOo/oOthkOo/main/assets/eth.svg\" alt=\"Ethereum\"/> | ETH | 0x1C389f1f85Cdb3C2996b83fAc87E496A80698B7C\n<img width=\"32\" src=\"https://raw.githubusercontent.com/oOthkOo/oOthkOo/main/assets/sol.svg\" alt=\"Solana\"/> | SOL | F14pWhGjGLcCF8RMk4JhbK2kD49iBBwa9KFygRJo54Fm\n\n## Build WhatsApp Debian/Ubuntu/Mint packages\n\nFollow these instructions to install `whatsapp-desktop` on your system.\n\n### Install NPM and Yarn\n\nYou need NPM and Yarn to be installed on your system before building deb package.\n\n* NPM  : https://nodejs.org/en/download/package-manager/\n* Yarn : https://yarnpkg.com/lang/en/docs/install/\n\n### Build Linux 32/64 bits packages\n\nYou can build `whatsapp-linux-xxx.deb` package with:\n\n```sh\ngit clone https://github.com/oOthkOo/whatsapp-desktop.git\ncd whatsapp-desktop\nnpm run build:linux   # for x64 arch\nnpm run build:linux32 # for x32 arch\n```\n\nYou'll find debian packages into `build/releases` directory.\n\n### Install WhatsApp on Debian, Ubuntu, Mint, ...\n\n```sh\nsudo apt install ./build/releases/whatsapp-linux-x64.deb\nsudo apt install -f\n```\n\n## Contributions\n\nContributions are welcome! For feature requests and bug reports please submit an [issue](https://github.com/oOthkOo/whatsapp-desktop/issues).\n\n## Build from source\n\nTo build from the source, run the following commands:\n\n```sh\nnpm install\nnpm run build:{platform}\n```\n\n| Platform | OS | Format |\n| --- | --- | --- |\n| win | Windows only | zip |\n| osx | OSX only | zip |\n| osxm1 | OSX arm64 (m1) | zip |\n| linux | Linux 64 bits | deb |\n| linux32 | Linux 32 bits | deb |\n| linuxarmv7l | ARM Linux | deb |\n\nOr if you wants build for all platforms:\n\n```sh\nnpm install\nnpm run build:all\n```\n\nYou'll find artifacts into `build/releases/` directory.\n\n#### Cross-build for Windows (from Linux/macOS)\n\n`Wine` needs to be installed.\nOn macOS, it is installable via Homebrew:  \n\n```sh\nbrew install wine\n```\n\nOn Linux, it is installable via:\n\n```sh\nsudo apt install wine\n```\n\nOn GNU/Linux you can install `Wine` from your distro package manager.\n\nPlease mind that `Wine` requires an Xorg display, so you should set correctly your DISPLAY env var (you can use `Xvfb` if you don't have/want a real Xorg display running)\n\n## Run on-the-fly (for devs)\n\nIf you're a developer, you may want to use directly `yarn run dev` (in project root) instead of compiling the code each time.\nPlease note that autostart feature will not work in this mode.\n"
  },
  {
    "path": "app/agents.json",
    "content": "{\n    \"userAgents\": [\n        \"Mozilla/5.0 (X11; Linux x86_64; rv:141.0) Gecko/20100101 Firefox/141.0\",\n        \"Mozilla/5.0 (Macintosh; Intel Mac OS X 15_7_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36\"\n    ]\n}\n"
  },
  {
    "path": "app/css/settings.css",
    "content": "html{\n  -webkit-user-select: none;\n  user-select: none;\n}\n\nheader {\n  -webkit-app-region: drag;\n  display: block;\n  border-bottom: 1px solid #ccc\n}\n\nheader h4 {\n  margin-top: 2px;\n}\n\nmain {\n  margin: 10px auto;\n  padding: 20px;\n}\n\n#save-button{\n  bottom: 0;\n  right: 0;\n}\n\nlabel:after {\n  width: 200px\n}\n"
  },
  {
    "path": "app/html/about.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n  <meta charset=\"utf-8\">\n  <script type=\"text/javascript\">\n  window.jQuery = window.$ = require('../js/lib/jquery.min.js');\n  window.Hammer = require('../js/lib/hammer.min.js');\n  window.app = require('@electron/remote');\n  </script>\n  <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.0/css/materialize.min.css\">\n  <link rel=\"stylesheet\" href=\"../css/settings.css\">\n  <script src=\"https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.0/js/materialize.min.js\"></script>\n  <script src=\"../js/views/about.js\"></script>\n  <title>About</title>\n</head>\n<body>\n  <main class=\"main-container\">\n    <header>\n      <h4 class=\"teal-text text-lighten-1\"><script> document.write(_(\"Settings\")); </script></h4>\n    </header>\n\n    <div id=\"settings-wrapper\">\n        <p>Unofficial WhatsApp Desktop Client for OSX, Linux and Windows. Build with Electron.</p>\n        <p>This is <b>NOT</b> an official product. This project does not attempt to reverse engineer the WhatsApp API or attempt to\n            reimplement any part of the WhatsApp client. Any communication between the user and WhatsApp servers is handled by\n            official WhatsApp Web itself; this is just a native wrapper for WhatsApp Web, like a browser.</p>\n        <p>App version: <span id=\"appversion\"></span></p>\n        <p><b><span id=\"appupdates\"></span></b></p>\n        <p>Website: <a href=\"http://oothkoo.com\" target=\"_blank\">http://oothkoo.com</a></p>\n    </div>\n  </main>\n</body>\n</html>\n"
  },
  {
    "path": "app/html/phoneinfo.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n  <meta charset=\"utf-8\">\n  <script type=\"text/javascript\">\n  window.jQuery = window.$ = require('../js/lib/jquery.min.js');\n  window.Hammer = require('../js/lib/hammer.min.js');\n  window.app = require('@electron/remote');\n  </script>\n  <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.0/css/materialize.min.css\">\n  <link rel=\"stylesheet\" href=\"../css/settings.css\">\n  <script src=\"https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.0/js/materialize.min.js\"></script>\n  <script src=\"../js/views/phoneinfo.js\"></script>\n  <title>Phone Info</title>\n</head>\n<body>\n  <main class=\"main-container\">\n    <header>\n      <h4 class=\"teal-text text-lighten-1\">Phone Info</h4>\n    </header>\n\n    <div id=\"settings-wrapper\">\n      <div class=\"row\">\n        <div class=\"col s6\">\n            <p>Mobile number: <span id=\"me\"></span></p>\n            <p>Battery: <span id=\"battery\"></span></p>\n            <p>Phone: <span id=\"manufacturer\"></span> <span id=\"model\"></span> <span id=\"platform\"></span>\n                <span id=\"os_version\"></span> <span id=\"os_build_number\"></span></p>\n            <p>WhatsApp version: <span id=\"wa_version\"></span></p>\n        </div>\n      </div>\n\n      <div class=\"row\">\n        <div class=\"col s6 offset-s6 \">\n          <a id=\"close-button\" class=\"waves-effect waves-light btn\">Close</a>\n        </div>\n      </div>\n    </div>\n  </main>\n</body>\n</html>\n"
  },
  {
    "path": "app/html/settings.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n  <meta charset=\"utf-8\">\n  <script type=\"text/javascript\">\n  window.jQuery = window.$ = require('../js/lib/jquery.min.js');\n  window.Hammer = require('../js/lib/hammer.min.js');\n  window.app = require('@electron/remote');\n  _ = window.app.getGlobal(\"_\");\n  </script>\n  <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.0/css/materialize.min.css\">\n  <link rel=\"stylesheet\" href=\"../css/settings.css\">\n  <script src=\"https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.0/js/materialize.min.js\"></script>\n  <script src=\"../js/views/settings.js\"></script>\n  <title></title>\n</head>\n<body>\n  <main class=\"main-container\">\n    <header>\n      <h4 class=\"teal-text text-lighten-1\"><script> document.write(_(\"Settings\")); </script></h4>\n    </header>\n    <div id=\"settings-wrapper\">\n      <p>\n        <input type=\"checkbox\" id=\"avatars\" />\n        <label for=\"avatars\"><script> document.write(_(\"Hide Avatars\")); </script></label>\n      </p>\n      <p>\n        <input type=\"checkbox\" id=\"previews\" />\n        <label for=\"previews\"><script> document.write(_(\"Hide Message Previews\")); </script></label>\n      </p>\n      <p>\n        <input type=\"checkbox\" id=\"trayicon\" />\n        <label for=\"trayicon\"><script> document.write(_(\"Show Tray Icon\")); </script>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n            <small>[Windows/Linux]</small></label>\n      </p>\n      <p>\n        <input type=\"checkbox\" id=\"startminimized\" />\n        <label for=\"startminimized\"><script> document.write(_(\"Minimize to tray on startup\")); </script></label>\n      </p>\n      <p>\n        <input type=\"checkbox\" id=\"autostart\" />\n        <label for=\"autostart\"><script> document.write(_(\"Auto start on login\")); </script>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n            <small>[Windows/Linux]</small></label>\n      </p>\n      <p>\n        <input type=\"checkbox\" id=\"autoHideMenuBar\" />\n        <label for=\"autoHideMenuBar\"><script> document.write(_(\"Auto hide menu bar\")); </script>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n            <small>[Windows/Linux]</small></label>\n      </p>\n      <p>\n        <input type=\"checkbox\" id=\"disablegpu\" />\n        <label for=\"disablegpu\"><script> document.write(_(\"Disable GPU (restart to take effect)\")); </script></label>\n      </p>\n      <p>\n        <input type=\"checkbox\" id=\"globalshortcut\" />\n        <label for=\"globalshortcut\"><script> document.write(_(\"Enable Hot Keys (CmdOrCtrl + Alt + W, restart to take effect)\")); </script></label>\n      </p>\n      <p>\n        <input type=\"checkbox\" id=\"darkMode\" />\n        <label for=\"darkMode\"><script> document.write(_(\"Dark Mode\")); </script></label>\n      </p>\n      <p>\n        <input type=\"checkbox\" id=\"blurImages\" />\n        <label for=\"blurImages\"><script> document.write(_(\"Blur images and emojis (visible on mouseover)\")); </script></label>\n      </p>\n      <div class=\"row\">\n        <div class=\"input-field col s8\">\n          <input id=\"thumb-size\" type=\"number\" class=\"validate\"  min=\"50\" max=\"150\">\n          <label id=\"thumb-size_label\" for=\"thumb-size\" data-error=\"Must be between 50 and 150\"><script> document.write(_(\"Thumb Size\")); </script></label>\n        </div>\n      </div>\n      <p>\n          <label id=\"fontSize_label\" for=\"fontSize\"><script> document.write(_(\"Text size\")); </script></label>\n          <select id=\"fontSize\" style=\"display: inline;\">\n              <option value=\"small\">Small</option>\n              <option value=\"normal\" selected=\"selected\">Normal</option>\n              <option value=\"medium\">Large</option>\n              <option value=\"large\">X-Large</option>\n          </select>\n      </p>\n\n      <p>\n        <input type=\"checkbox\" id=\"useProxy\" />\n        <label for=\"useProxy\"><script> document.write(_(\"Use Proxy (Changes in proxy settings require app restart)\")); </script></label>\n      </p>\n\n      <div class=\"row\">\n        <div class=\"input-field col s6\">\n          <input id=\"httpProxy\" type=\"text\" class=\"validate\">\n          <label id=\"httpProxy_label\" for=\"httpProxy\" data-error=\"This field is required if you are using a proxy\"><script> document.write(_(\"Http Proxy\")); </script></label>\n        </div>\n        <div class=\"input-field col s6\">\n          <input id=\"httpsProxy\" type=\"text\" placeholder=\"Leave blank to use the same\" class=\"validate\">\n          <label id=\"httpsProxy_label\" for=\"httpsProxy\" ><script> document.write(_(\"Https Proxy\")); </script></label>\n        </div>\n      </div>\n\n      <p>\n        <input type=\"checkbox\" id=\"custombackground_enable\" onchange=\"chooseChatBackground();\" />\n        <label for=\"custombackground_enable\"><script> document.write(_(\"Load custom chat background\")); </script></label>\n        <input type=\"text\" id=\"custombackground_file\" val=\"\" readonly=\"readonly\" />\n      </p>\n      <div class=\"row\">\n        <div class=\"input-field col s8\">\n          <input id=\"background_opacity\" type=\"number\" class=\"validate\"  min=\"0\" max=\"100\">\n          <label id=\"background_opacity_label\" for=\"background_opacity\" data-error=\"Must be between 0 and 100\"><script> document.write(_(\"Background opacity\")); </script></label>\n        </div>\n      </div>\n\n      <p>\n        <input type=\"checkbox\" id=\"customcss_enable\" onchange=\"chooseCustomCSS();\" />\n        <label for=\"customcss_enable\"><script> document.write(_(\"Load custom CSS\")); </script></label>\n        <input type=\"text\" id=\"customcss_file\" val=\"\" readonly=\"readonly\" />\n      </p>\n\n      <div class=\"row\">\n        <div class=\"col s6 offset-s6 \">\n          <a id=\"close-button\" class=\"waves-effect waves-light btn\"><script> document.write(_(\"Close\")); </script></a>\n          <a id=\"save-button\" class=\"waves-effect waves-light btn\"><script> document.write(_(\"Save\")); </script></a>\n        </div>\n      </div>\n    </div>\n  </main>\n</body>\n</html>\n"
  },
  {
    "path": "app/js/injected.js",
    "content": "(function () {\n\n    const {ipcRenderer} = require('electron');\n    var updatePhoneInfoInterval = null;\n\n    function updatePhoneInfo() {\n        if (window.Store == undefined || window.Store.Conn == undefined) {\n            return;\n        }\n        ipcRenderer.send('phoneinfoupdate', {\n            'info': window.Store.Stream.info,\n            'me': \"+\" + window.Store.Conn.me.split(\"@\")[0],\n            'battery': window.Store.Conn.battery,\n            'plugged': window.Store.Conn.plugged,\n            'platform': window.Store.Conn.platform,\n            'phoneActive': window.Store.Stream.phoneActive,\n            'phone': {\n                'manufacturer': window.Store.Conn.phone.device_manufacturer,\n                'model': window.Store.Conn.phone.device_model,\n                'mcc': window.Store.Conn.phone.mcc,\n                'mnc': window.Store.Conn.phone.mnc,\n                'os_build_number': window.Store.Conn.phone.os_build_number,\n                'os_version': window.Store.Conn.phone.os_version,\n                'wa_version': window.Store.Conn.phone.wa_version\n            }\n        });\n        if (updatePhoneInfoInterval != null) {\n            clearInterval(updatePhoneInfoInterval);\n            updatePhoneInfoInterval = null;\n            setInterval(updatePhoneInfo, 2000)\n        }\n    }\n\n    console.log(\"Waiting for DOMContentLoaded\");\n    document.addEventListener('DOMContentLoaded', function () {\n        console.log(\"DOMContentLoaded event\");\n        updatePhoneInfoInterval = setInterval(updatePhoneInfo, 500);\n\n        // pass in the target node, as well as the observer options\n        var observer = new MutationObserver(function (mutations) {\n            console.log(\"Mutations occurred: \", mutations.length);\n\n            var inputSearch = document.querySelector(\"input.input-search\");\n            if (inputSearch) {\n                console.log(\"Adding event listeners\");\n\n                document.addEventListener(\"keydown\", function (event) {\n                    // cmd+k and cmd+f focuses on search input.\n                    if ((event.keyCode === 75 || event.keyCode == 70) && event.metaKey === true)\n                        inputSearch.focus();\n                });\n\n                console.log(\"Disconnecting the observer\");\n                observer.disconnect();\n            }\n        });\n\n        var config = {childList: true, subtree: true};\n        observer.observe(document.querySelector(\"body\"), config);\n\n    }, false);\n\n    setInterval(function() {\n        Array.from(document.querySelectorAll('audio')).map(function(audio) {\n            audio.playbackRate = (window.audioRate || 1)\n        });\n        if (window.audioRate) {\n            Array.from(document.querySelectorAll('.meta-audio *:first-child')).map(function(span) {\n                span.innerHTML = window.audioRate.toFixed(1) + \"x&nbsp;\";\n            });\n        }\n    }, 200);\n\n    var NativeNotification = Notification;\n    Notification = function(title, options) {\n        if (remote.getGlobal(\"config\").currentSettings.quietMode) {\n            return;\n        }\n    \tvar notification = new NativeNotification(title, options);\n\n    \tnotification.addEventListener('click', function() {\n    \t\tipcRenderer.send('notificationClick');\n    \t});\n\n    \treturn notification;\n    }\n\n    Notification.prototype = NativeNotification.prototype;\n    Notification.permission = NativeNotification.permission;\n    Notification.requestPermission = NativeNotification.requestPermission.bind(Notification);\n\n})();\n"
  },
  {
    "path": "app/js/views/about.js",
    "content": "var whatsApp = require('@electron/remote').getGlobal(\"whatsApp\");\nvar pjson = require('@electron/remote').getGlobal('pjson');\n\n$(document).ready(() => {\n    $(\"#appversion\").html(pjson[\"version\"]);\n    if (whatsApp.newVersion == null) {\n        $(\"#appupdates\").html(\"Unable to verify latest version from GitHub - please close and reopen this window\");\n    } else if (whatsApp.newVersion != \"v\"+pjson.version) {\n        $(\"#appupdates\").html(\"A new version is available: \" + whatsApp.newVersion + \"!\");\n    } else if (whatsApp.newVersion == \"v\"+pjson.version) {\n        $(\"#appupdates\").html(\"You're using latest version\");\n    }\n});\n"
  },
  {
    "path": "app/js/views/phoneinfo.js",
    "content": "var whatsApp = require('@electron/remote').getGlobal(\"whatsApp\");\nvar phoneinfo = require('@electron/remote').getGlobal('phoneinfo');\n\nvar PhoneInfoView = {\n    bindEvents() {\n        $this = this;\n        $(\"#close-button\").on(\"click\", () => {\n            phoneinfo.window.close();\n        });\n    },\n\n    init() {\n        console.log(phoneinfo);\n        if (phoneinfo.infos != null) {\n            $(\"#me\").html(phoneinfo.infos.me);\n            $(\"#battery\").html(phoneinfo.infos.battery + \"% (\" + (phoneinfo.infos.plugged ? \"charging\" : \"discharging\") + \")\");\n            $(\"#platform\").html(phoneinfo.infos.platform);\n            $(\"#manufacturer\").html(phoneinfo.infos.phone.manufacturer);\n            $(\"#model\").html(phoneinfo.infos.phone.model);\n            $(\"#os_version\").html(phoneinfo.infos.phone.os_version);\n            $(\"#wa_version\").html(phoneinfo.infos.phone.wa_version);\n            $(\"#os_build_number\").html(phoneinfo.infos.phone.os_build_number);\n        } else {\n            $(\"#me\").html(\"Not available, try to refresh this page\");\n        }\n        this.bindEvents();\n    }\n};\n\n$(document).ready(() => {\n    PhoneInfoView.init();\n});\n"
  },
  {
    "path": "app/js/views/settings.js",
    "content": "var whatsApp = require('@electron/remote').getGlobal(\"whatsApp\");\nvar settings = require('@electron/remote').getGlobal('settings');\nvar config = require('@electron/remote').getGlobal('config');\nconst {dialog} = require('@electron/remote');\n\nvar SettingsView = {\n    bindEvents() {\n        $this = this;\n        $(\"#save-button\").on(\"click\", (e) => {\n            e.preventDefault();\n            if ($(\".invalid\").length > 0 ) {\n                return;\n            }\n            $this.saveSettings();\n            settings.window.close();\n        });\n\n        $(\"#close-button\").on(\"click\", () => {\n            settings.window.close();\n        });\n\n        $(\"#useProxy\").on(\"change\", () => {\n            $(\"#httpProxy\").prop(\"disabled\", !($(\"#useProxy\").is(\":checked\")));\n            $(\"#httpsProxy\").prop(\"disabled\", !($(\"#useProxy\").is(\":checked\")));\n        });\n    },\n\n    init() {\n        document.title = _(\"Settings\");\n\n        $(\"#custombackground_enable\").attr(\"checked\", config.get(\"background-image\") != undefined);\n        if (config.get(\"background-image\") != undefined) {\n            $(\"#custombackground_file\").val(config.get(\"background-image\"));\n            $(\"#background_opacity\").val(config.get(\"background-opacity\"));\n        } else {\n            $(\"#background_opacity\").val(\"100\");\n        }\n\n        if (config.get(\"fontSize\") != undefined) {\n            $(\"#fontSize\").val(config.get(\"fontSize\"));\n        }\n\n        $(\"#darkMode\").attr(\"checked\", config.get(\"darkMode\") == true);\n        $(\"#blurImages\").attr(\"checked\", config.get(\"blurImages\") == true);\n        $(\"#autoHideMenuBar\").attr(\"checked\", config.get(\"autoHideMenuBar\") == true);\n        $(\"#disablegpu\").attr(\"checked\", config.get(\"disablegpu\") == true);\n        $(\"#globalshortcut\").attr(\"checked\", config.get(\"globalshortcut\") == true);\n        $(\"#autostart\").attr(\"checked\", config.get(\"autostart\") == true);\n        $(\"#startminimized\").attr(\"checked\", config.get(\"startminimized\") == true);\n        $(\"#trayicon\").attr(\"checked\", config.get(\"trayicon\") != false);\n        $(\"#avatars\").attr(\"checked\", config.get(\"hideAvatars\"));\n        $(\"#previews\").attr(\"checked\", config.get(\"hidePreviews\"));\n        if (config.get(\"thumbSize\")) {\n            $(\"#thumb-size\").val(config.get(\"thumbSize\"));\n        }\n        $(\"#useProxy\").attr(\"checked\", config.get(\"useProxy\"));\n        $(\"#httpProxy\").val(config.get(\"httpProxy\"));\n        $(\"#httpsProxy\").val(config.get(\"httpsProxy\"));\n        $(\"#httpProxy\").prop(\"disabled\", !($(\"#useProxy\").is(\":checked\")));\n        $(\"#httpsProxy\").prop(\"disabled\", !($(\"#useProxy\").is(\":checked\")));\n\n        $(\"#customcss_enable\").attr(\"checked\", config.get(\"customcss\") != undefined);\n        if ($(\"#customcss_enable\").is(\":checked\")) {\n            $(\"#customcss_file\").val(config.get(\"customcss\"));\n        }\n\n        // Disable unavailable options\n        if (process.platform === 'darwin') {\n            $(\"#autostart\").prop(\"disabled\", true);\n            $(\"#autoHideMenuBar\").prop(\"disabled\", true);\n            $(\"#trayicon\").prop(\"disabled\", true);\n            $(\"#trayicon\").prop(\"checked\", false);\n        }\n\n        this.bindEvents();\n    },\n\n    saveSettings() {\n\n        if ($(\"#customcss_enable\").is(\":checked\")) {\n            config.set(\"customcss\", $(\"#customcss_file\").val());\n        } else {\n            config.set(\"customcss\", undefined);\n        }\n\n        if ($(\"#custombackground_enable\").is(\":checked\")) {\n            config.set(\"background-image\", $(\"#custombackground_file\").val());\n            config.set(\"background-opacity\", $(\"#background_opacity\").val());\n        } else {\n            config.set(\"background-image\", undefined);\n        }\n\n        config.set(\"fontSize\", $(\"#fontSize\").val());\n\n        config.set(\"darkMode\", $(\"#darkMode\").is(\":checked\"));\n        config.set(\"blurImages\", $(\"#blurImages\").is(\":checked\"));\n        config.set(\"autoHideMenuBar\", $(\"#autoHideMenuBar\").is(\":checked\"));\n        config.set(\"disablegpu\", $(\"#disablegpu\").is(\":checked\"));\n        config.set(\"globalshortcut\", $(\"#globalshortcut\").is(\":checked\"));\n        config.set(\"autostart\", $(\"#autostart\").is(\":checked\"));\n        config.set(\"startminimized\", $(\"#startminimized\").is(\":checked\"));\n        config.set(\"hideAvatars\", $(\"#avatars\").is(\":checked\"));\n        config.set(\"hidePreviews\", $(\"#previews\").is(\":checked\"));\n        config.set(\"thumbSize\", parseInt($(\"#thumb-size\").val(), 10));\n        config.set(\"trayicon\", $(\"#trayicon\").is(\":checked\"));\n        if ($(\"#useProxy\").is(\":checked\")) {\n            config.set(\"useProxy\", $(\"#useProxy\").is(\":checked\"));\n            config.set(\"httpProxy\", $(\"#httpProxy\").val());\n            config.set(\"httpsProxy\", $(\"#httpsProxy\").val());\n        } else {\n            config.unSet(\"useProxy\");\n            config.unSet(\"httpProxy\");\n            config.unSet(\"httpsProxy\");\n        }\n        config.saveConfiguration();\n        config.applyConfiguration();\n        whatsApp.window.reload();\n    }\n};\n\nfunction chooseCustomCSS() {\n    if ($(\"#customcss_enable\").is(\":checked\")) {\n        dialog.showOpenDialog(function (fileNames) {\n            if (fileNames === undefined || fileNames.length == 0) {\n                $(\"#customcss_enable\").removeAttr(\"checked\");\n                return;\n            }\n            $(\"#customcss_file\").val(fileNames[0]);\n        });\n    } else {\n        $(\"#customcss_file\").val(\"\");\n    }\n}\n\nfunction chooseChatBackground() {\n    if ($(\"#custombackground_enable\").is(\":checked\")) {\n        dialog.showOpenDialog(function (fileNames) {\n            if (fileNames === undefined || fileNames.length == 0) {\n                $(\"#custombackground_enable\").removeAttr(\"checked\");\n                return;\n            }\n            if (fileNames[0].endsWith(\".jpg\") || fileNames[0].endsWith(\".jpeg\")\n                || fileNames[0].endsWith(\".png\")\n                || fileNames[0].endsWith(\".gif\")) {\n                $(\"#custombackground_file\").val(fileNames[0]);\n            } else {\n                alert(_(\"Please choose a JPEG or PNG file\"));\n                $(\"#custombackground_enable\").removeAttr(\"checked\");\n            }\n        });\n    } else {\n        $(\"#custombackground_file\").val(\"\");\n    }\n}\n\n$(document).ready(() => {\n    SettingsView.init();\n});\n"
  },
  {
    "path": "app/locale/de_DE/messages.po",
    "content": "# Whatsapp Desktop translations.\n#\nmsgid \"\"\nmsgstr \"\"\n\"Project-Id-Version: Whatsapp-Desktop\\n\"\n\"Report-Msgid-Bugs-To: \\n\"\n\"POT-Creation-Date: 2017-06-17 11:15+0200\\n\"\n\"PO-Revision-Date: 2017-11-28 10:48+0100\\n\"\n\"Language-Team: \\n\"\n\"MIME-Version: 1.0\\n\"\n\"Content-Type: text/plain; charset=UTF-8\\n\"\n\"Content-Transfer-Encoding: 8bit\\n\"\n\"X-Generator: Poedit 2.0.4\\n\"\n\"Last-Translator: mrprobot\\n\"\n\"Plural-Forms: nplurals=2; plural=(n != 1);\\n\"\n\"Language: de_DE\\n\"\n\n#: app/main.js:168 app/main.js:192 app/main.js:198 app/main.js:214\nmsgid \"Show\"\nmsgstr \"Anzeigen\"\n\n#: app/main.js:174 app/menu.js:146 app/main.js:198 app/menu.js:159\n#: app/main.js:204 app/main.js:220\nmsgid \"Hide\"\nmsgstr \"Ausblenden\"\n\n#: app/main.js:181 app/menu.js:163 app/menu.js:191 app/main.js:205\n#: app/menu.js:176 app/menu.js:204 app/main.js:211 app/menu.js:197\n#: app/main.js:227\nmsgid \"Quit\"\nmsgstr \"Beenden\"\n\n#: app/menu.js:6\nmsgid \"Edit\"\nmsgstr \"Bearbeiten\"\n\n#: app/menu.js:9\nmsgid \"Undo\"\nmsgstr \"Rückgängig\"\n\n#: app/menu.js:14\nmsgid \"Redo\"\nmsgstr \"Wiederherstellen\"\n\n#: app/menu.js:22\nmsgid \"Cut\"\nmsgstr \"Ausschneiden\"\n\n#: app/menu.js:27\nmsgid \"Copy\"\nmsgstr \"Kopieren\"\n\n#: app/menu.js:32\nmsgid \"Paste\"\nmsgstr \"Einfügen\"\n\n#: app/menu.js:37\nmsgid \"Select All\"\nmsgstr \"Alles auswählen\"\n\n#: app/menu.js:45 app/html/settings.html:20\nmsgid \"Settings\"\nmsgstr \"Einstellungen\"\n\n#: app/menu.js:54\nmsgid \"View\"\nmsgstr \"Ansicht\"\n\n#: app/menu.js:57\nmsgid \"Reload\"\nmsgstr \"Neu laden\"\n\n#: app/menu.js:65\nmsgid \"Toggle Full Screen\"\nmsgstr \"Vollbild\"\n\n#: app/menu.js:78\nmsgid \"Toggle Developer Tools\"\nmsgstr \"Entwickler Werkzeuge\"\n\n#: app/menu.js:93 app/menu.js:106\nmsgid \"Window\"\nmsgstr \"Fenster\"\n\n#: app/menu.js:97 app/menu.js:110\nmsgid \"Minimize\"\nmsgstr \"Minimieren\"\n\n#: app/menu.js:102 app/html/settings.html:56 app/menu.js:115\n#: app/html/settings.html:60 app/html/settings.html:64\n#: app/html/settings.html:68\nmsgid \"Close\"\nmsgstr \"Schließen\"\n\n#: app/menu.js:109 app/menu.js:122\nmsgid \"Audio\"\nmsgstr \"Lautstärke\"\n\n#: app/menu.js:112 app/menu.js:125\nmsgid \"Increase Audio Rate by 20%\"\nmsgstr \"Lautstärke um 20% erhöhen\"\n\n#: app/menu.js:121 app/menu.js:134\nmsgid \"Decrease Audio Rate by 20%\"\nmsgstr \"Lautstärke um 20% senken\"\n\n#: app/menu.js:139 app/menu.js:184 app/menu.js:152 app/menu.js:197\nmsgid \"About\"\nmsgstr \"Über\"\n\n#: app/menu.js:151 app/menu.js:164\nmsgid \"Hide Others\"\nmsgstr \"Andere ausblenden\"\n\n#: app/menu.js:156 app/menu.js:169\nmsgid \"Show All\"\nmsgstr \"Alles anzeigen\"\n\n#: app/menu.js:175 app/menu.js:188\nmsgid \"Bring All to Front\"\nmsgstr \"Alle in Vordergrund bringen\"\n\n#: app/html/settings.html:25\nmsgid \"Hide Avatars\"\nmsgstr \"Avatare ausblenden\"\n\n#: app/html/settings.html:29\nmsgid \"Hide Message Previews\"\nmsgstr \"Nachrichten Vorschau ausblenden\"\n\n#: app/html/settings.html:40 app/html/settings.html:44\n#: app/html/settings.html:48 app/html/settings.html:52\nmsgid \"Use Proxy (Changes in proxy settings require app restart)\"\nmsgstr \"Proxy verwenden (Änderungen benötigen Neustart der App)\"\n\n#: app/html/settings.html:50 app/html/settings.html:54\n#: app/html/settings.html:58 app/html/settings.html:62\nmsgid \"Https Proxy\"\nmsgstr \"Https Proxy\"\n\n#: app/html/settings.html:57 app/html/settings.html:61\n#: app/html/settings.html:65 app/html/settings.html:69\nmsgid \"Save\"\nmsgstr \"Speichern\"\n\n#: app/menu.js:91\nmsgid \"Phone info\"\nmsgstr \"Telefon Info\"\n\n#: app/html/settings.html:33\nmsgid \"Show Tray Icon\"\nmsgstr \"Symbol im Tray anzeigen\"\n\n#: app/html/settings.html:37\nmsgid \"Minimize to tray on startup\"\nmsgstr \"Minimiert starten\"\n\n#: app/html/settings.html:41\nmsgid \"Auto start on login\"\nmsgstr \"Autostart\"\n"
  },
  {
    "path": "app/locale/en_US/messages.po",
    "content": "# Whatsapp Desktop translations.\n#\nmsgid \"\"\nmsgstr \"\"\n\"Project-Id-Version: Whatsapp-Desktop\\n\"\n\"Report-Msgid-Bugs-To: \\n\"\n\"POT-Creation-Date: 2017-06-17 11:15+0200\\n\"\n\"PO-Revision-Date: 2017-07-10 09:58+0100\\n\"\n\"Last-Translator: void\\n\"\n\"Language-Team: \\n\"\n\"Language: en\\n\"\n\"MIME-Version: 1.0\\n\"\n\"Content-Type: text/plain; charset=UTF-8\\n\"\n\"Content-Transfer-Encoding: 8bit\\n\"\n\"X-Generator: Poedit 1.6.10\\n\"\n\n#: app/main.js:168 app/main.js:192 app/main.js:198 app/main.js:214\nmsgid \"Show\"\nmsgstr \"Show\"\n\n#: app/main.js:174 app/menu.js:146 app/main.js:198 app/menu.js:159\n#: app/main.js:204 app/main.js:220\nmsgid \"Hide\"\nmsgstr \"Hide\"\n\n#: app/main.js:181 app/menu.js:163 app/menu.js:191 app/main.js:205\n#: app/menu.js:176 app/menu.js:204 app/main.js:211 app/menu.js:197\n#: app/main.js:227\nmsgid \"Quit\"\nmsgstr \"Quit\"\n\n#: app/menu.js:6\nmsgid \"Edit\"\nmsgstr \"Edit\"\n\n#: app/menu.js:9\nmsgid \"Undo\"\nmsgstr \"Undo\"\n\n#: app/menu.js:14\nmsgid \"Redo\"\nmsgstr \"Redo\"\n\n#: app/menu.js:22\nmsgid \"Cut\"\nmsgstr \"Cut\"\n\n#: app/menu.js:27\nmsgid \"Copy\"\nmsgstr \"Copy\"\n\n#: app/menu.js:32\nmsgid \"Paste\"\nmsgstr \"Paste\"\n\n#: app/menu.js:37\nmsgid \"Select All\"\nmsgstr \"Select All\"\n\n#: app/menu.js:45 app/html/settings.html:20\nmsgid \"Settings\"\nmsgstr \"Settings\"\n\n#: app/menu.js:54\nmsgid \"View\"\nmsgstr \"View\"\n\n#: app/menu.js:57\nmsgid \"Reload\"\nmsgstr \"Reload\"\n\n#: app/menu.js:65\nmsgid \"Toggle Full Screen\"\nmsgstr \"Toggle Full Screen\"\n\n#: app/menu.js:78\nmsgid \"Toggle Developer Tools\"\nmsgstr \"Toggle Developer Tools\"\n\n#: app/menu.js:93 app/menu.js:106\nmsgid \"Window\"\nmsgstr \"Window\"\n\n#: app/menu.js:97 app/menu.js:110\nmsgid \"Minimize\"\nmsgstr \"Minimize\"\n\n#: app/menu.js:102 app/html/settings.html:56 app/menu.js:115\n#: app/html/settings.html:60 app/html/settings.html:64\n#: app/html/settings.html:68\nmsgid \"Close\"\nmsgstr \"Close\"\n\n#: app/menu.js:109 app/menu.js:122\nmsgid \"Audio\"\nmsgstr \"Audio\"\n\n#: app/menu.js:112 app/menu.js:125\nmsgid \"Increase Audio Rate by 20%\"\nmsgstr \"Increase Audio Rate by 20%\"\n\n#: app/menu.js:121 app/menu.js:134\nmsgid \"Decrease Audio Rate by 20%\"\nmsgstr \"Decrease Audio Rate by 20%\"\n\n#: app/menu.js:139 app/menu.js:184 app/menu.js:152 app/menu.js:197\nmsgid \"About\"\nmsgstr \"About\"\n\n#: app/menu.js:151 app/menu.js:164\nmsgid \"Hide Others\"\nmsgstr \"Hide Others\"\n\n#: app/menu.js:156 app/menu.js:169\nmsgid \"Show All\"\nmsgstr \"Show All\"\n\n#: app/menu.js:175 app/menu.js:188\nmsgid \"Bring All to Front\"\nmsgstr \"Bring All to Front\"\n\n#: app/html/settings.html:25\nmsgid \"Hide Avatars\"\nmsgstr \"Hide Avatars\"\n\n#: app/html/settings.html:29\nmsgid \"Hide Message Previews\"\nmsgstr \"Hide Message Previews\"\n\n#: app/html/settings.html:40 app/html/settings.html:44\n#: app/html/settings.html:48 app/html/settings.html:52\nmsgid \"Use Proxy (Changes in proxy settings require app restart)\"\nmsgstr \"Use Proxy (Changes in proxy settings require app restart)\"\n\n#: app/html/settings.html:50 app/html/settings.html:54\n#: app/html/settings.html:58 app/html/settings.html:62\nmsgid \"Https Proxy\"\nmsgstr \"Https Proxy\"\n\n#: app/html/settings.html:57 app/html/settings.html:61\n#: app/html/settings.html:65 app/html/settings.html:69\nmsgid \"Save\"\nmsgstr \"Save\"\n\n#: app/menu.js:91\nmsgid \"Phone info\"\nmsgstr \"Phone info\"\n\n#: app/html/settings.html:33\nmsgid \"Show Tray Icon\"\nmsgstr \"Show Tray Icon\"\n\n#: app/html/settings.html:37\nmsgid \"Minimize to tray on startup\"\nmsgstr \"Minimize to tray on startup\"\n\n#: app/html/settings.html:41\nmsgid \"Auto start on login\"\nmsgstr \"Auto start on login\"\n\n#~ msgid \"Thumb Size\"\n#~ msgstr \"Thumb Size\"\n"
  },
  {
    "path": "app/locale/es_ES/messages.po",
    "content": "# Whatsapp Desktop translations.\n#\nmsgid \"\"\nmsgstr \"\"\n\"Project-Id-Version: Whatsapp-Desktop\\n\"\n\"Report-Msgid-Bugs-To: \\n\"\n\"POT-Creation-Date: 2017-06-17 11:15+0200\\n\"\n\"PO-Revision-Date: 2017-08-26 17:11-0300\\n\"\n\"Language-Team: Mauricio López\\n\"\n\"MIME-Version: 1.0\\n\"\n\"Content-Type: text/plain; charset=UTF-8\\n\"\n\"Content-Transfer-Encoding: 8bit\\n\"\n\"X-Generator: Poedit 2.0.3\\n\"\n\"Last-Translator: \\n\"\n\"Plural-Forms: nplurals=2; plural=(n != 1);\\n\"\n\"Language: es_419\\n\"\n\n#: app/main.js:168 app/main.js:192 app/main.js:198 app/main.js:214\nmsgid \"Show\"\nmsgstr \"Mostrar\"\n\n#: app/main.js:174 app/menu.js:146 app/main.js:198 app/menu.js:159\n#: app/main.js:204 app/main.js:220\nmsgid \"Hide\"\nmsgstr \"Ocultar\"\n\n#: app/main.js:181 app/menu.js:163 app/menu.js:191 app/main.js:205\n#: app/menu.js:176 app/menu.js:204 app/main.js:211 app/menu.js:197\n#: app/main.js:227\nmsgid \"Quit\"\nmsgstr \"Salir\"\n\n#: app/menu.js:6\nmsgid \"Edit\"\nmsgstr \"Editar\"\n\n#: app/menu.js:9\nmsgid \"Undo\"\nmsgstr \"Deshacer\"\n\n#: app/menu.js:14\nmsgid \"Redo\"\nmsgstr \"Rehacer\"\n\n#: app/menu.js:22\nmsgid \"Cut\"\nmsgstr \"Cortar\"\n\n#: app/menu.js:27\nmsgid \"Copy\"\nmsgstr \"Copiar\"\n\n#: app/menu.js:32\nmsgid \"Paste\"\nmsgstr \"Pegar\"\n\n#: app/menu.js:37\nmsgid \"Select All\"\nmsgstr \"Seleccionar todo\"\n\n#: app/menu.js:45 app/html/settings.html:20\nmsgid \"Settings\"\nmsgstr \"Ajustes\"\n\n#: app/menu.js:54\nmsgid \"View\"\nmsgstr \"Ver\"\n\n#: app/menu.js:57\nmsgid \"Reload\"\nmsgstr \"Actualizar\"\n\n#: app/menu.js:65\nmsgid \"Toggle Full Screen\"\nmsgstr \"Alternar pantalla completa\"\n\n#: app/menu.js:78\nmsgid \"Toggle Developer Tools\"\nmsgstr \"Alternar herramientas de desarrollo\"\n\n#: app/menu.js:93 app/menu.js:106\nmsgid \"Window\"\nmsgstr \"Ventana\"\n\n#: app/menu.js:97 app/menu.js:110\nmsgid \"Minimize\"\nmsgstr \"Minimizar\"\n\n#: app/menu.js:102 app/html/settings.html:56 app/menu.js:115\n#: app/html/settings.html:60 app/html/settings.html:64\n#: app/html/settings.html:68\nmsgid \"Close\"\nmsgstr \"Cerrar\"\n\n#: app/menu.js:109 app/menu.js:122\nmsgid \"Audio\"\nmsgstr \"Audio\"\n\n#: app/menu.js:112 app/menu.js:125\nmsgid \"Increase Audio Rate by 20%\"\nmsgstr \"Subir volumen un 20%\"\n\n#: app/menu.js:121 app/menu.js:134\nmsgid \"Decrease Audio Rate by 20%\"\nmsgstr \"Bajar volumen un 20%\"\n\n#: app/menu.js:139 app/menu.js:184 app/menu.js:152 app/menu.js:197\nmsgid \"About\"\nmsgstr \"Acerca de\"\n\n#: app/menu.js:151 app/menu.js:164\nmsgid \"Hide Others\"\nmsgstr \"Ocultar otros\"\n\n#: app/menu.js:156 app/menu.js:169\nmsgid \"Show All\"\nmsgstr \"Mostrar todos\"\n\n#: app/menu.js:175 app/menu.js:188\nmsgid \"Bring All to Front\"\nmsgstr \"Traer todos al frente\"\n\n#: app/html/settings.html:25\nmsgid \"Hide Avatars\"\nmsgstr \"Ocultar avatares\"\n\n#: app/html/settings.html:29\nmsgid \"Hide Message Previews\"\nmsgstr \"Ocultar previsualización de mensajes\"\n\n#: app/html/settings.html:40 app/html/settings.html:44\n#: app/html/settings.html:48 app/html/settings.html:52\nmsgid \"Use Proxy (Changes in proxy settings require app restart)\"\nmsgstr \"Usar proxy (los cambios en los ajustes del proxy requieren reiniciar la aplicación)\"\n\n#: app/html/settings.html:50 app/html/settings.html:54\n#: app/html/settings.html:58 app/html/settings.html:62\nmsgid \"Https Proxy\"\nmsgstr \"Proxy https\"\n\n#: app/html/settings.html:57 app/html/settings.html:61\n#: app/html/settings.html:65 app/html/settings.html:69\nmsgid \"Save\"\nmsgstr \"Guardar\"\n\n#: app/menu.js:91\nmsgid \"Phone info\"\nmsgstr \"Información del teléfono\"\n\n#: app/html/settings.html:33\nmsgid \"Show Tray Icon\"\nmsgstr \"Mostrar ícono en la barra de notificación\"\n\n#: app/html/settings.html:37\nmsgid \"Minimize to tray on startup\"\nmsgstr \"Minimizar a la barra de notifiación al iniciar\"\n\n#: app/html/settings.html:41\nmsgid \"Auto start on login\"\nmsgstr \"Inicio automático al iniciar sesión\"\n"
  },
  {
    "path": "app/locale/it_IT/messages.po",
    "content": "# Whatsapp Desktop translations.\n#\nmsgid \"\"\nmsgstr \"\"\n\"Project-Id-Version: Whatsapp-Desktop\\n\"\n\"Report-Msgid-Bugs-To: \\n\"\n\"POT-Creation-Date: 2017-06-17 11:15+0200\\n\"\n\"PO-Revision-Date: 2017-07-10 09:59+0100\\n\"\n\"Last-Translator: void\\n\"\n\"Language-Team: \\n\"\n\"Language: it\\n\"\n\"MIME-Version: 1.0\\n\"\n\"Content-Type: text/plain; charset=UTF-8\\n\"\n\"Content-Transfer-Encoding: 8bit\\n\"\n\"X-Generator: Poedit 1.6.10\\n\"\n\n#: app/main.js:168 app/main.js:192 app/main.js:198 app/main.js:214\nmsgid \"Show\"\nmsgstr \"Visualizza\"\n\n#: app/main.js:174 app/menu.js:146 app/main.js:198 app/menu.js:159\n#: app/main.js:204 app/main.js:220\nmsgid \"Hide\"\nmsgstr \"Nascondi\"\n\n#: app/main.js:181 app/menu.js:163 app/menu.js:191 app/main.js:205\n#: app/menu.js:176 app/menu.js:204 app/main.js:211 app/menu.js:197\n#: app/main.js:227\nmsgid \"Quit\"\nmsgstr \"Esci\"\n\n#: app/menu.js:6\nmsgid \"Edit\"\nmsgstr \"Modifica\"\n\n#: app/menu.js:9\nmsgid \"Undo\"\nmsgstr \"Annulla\"\n\n#: app/menu.js:14\nmsgid \"Redo\"\nmsgstr \"Ripeti\"\n\n#: app/menu.js:22\nmsgid \"Cut\"\nmsgstr \"Taglia\"\n\n#: app/menu.js:27\nmsgid \"Copy\"\nmsgstr \"Copia\"\n\n#: app/menu.js:32\nmsgid \"Paste\"\nmsgstr \"Incolla\"\n\n#: app/menu.js:37\nmsgid \"Select All\"\nmsgstr \"Seleziona tutto\"\n\n#: app/menu.js:45 app/html/settings.html:20\nmsgid \"Settings\"\nmsgstr \"Impostazioni\"\n\n#: app/menu.js:54\nmsgid \"View\"\nmsgstr \"Vista\"\n\n#: app/menu.js:57\nmsgid \"Reload\"\nmsgstr \"Ricarica\"\n\n#: app/menu.js:65\nmsgid \"Toggle Full Screen\"\nmsgstr \"Attiva/disattiva schermo intero\"\n\n#: app/menu.js:78\nmsgid \"Toggle Developer Tools\"\nmsgstr \"Attiva/disattiva tool sviluppatori\"\n\n#: app/menu.js:93 app/menu.js:106\nmsgid \"Window\"\nmsgstr \"Finestra\"\n\n#: app/menu.js:97 app/menu.js:110\nmsgid \"Minimize\"\nmsgstr \"Minimizza\"\n\n#: app/menu.js:102 app/html/settings.html:56 app/menu.js:115\n#: app/html/settings.html:60 app/html/settings.html:64\n#: app/html/settings.html:68\nmsgid \"Close\"\nmsgstr \"Chiudi\"\n\n#: app/menu.js:109 app/menu.js:122\nmsgid \"Audio\"\nmsgstr \"Audio\"\n\n#: app/menu.js:112 app/menu.js:125\nmsgid \"Increase Audio Rate by 20%\"\nmsgstr \"Incrementa la velocità dell'audio del 20%\"\n\n#: app/menu.js:121 app/menu.js:134\nmsgid \"Decrease Audio Rate by 20%\"\nmsgstr \"Decrementa la velocità dell'audio del 20%\"\n\n#: app/menu.js:139 app/menu.js:184 app/menu.js:152 app/menu.js:197\nmsgid \"About\"\nmsgstr \"Riguardo a\"\n\n#: app/menu.js:151 app/menu.js:164\nmsgid \"Hide Others\"\nmsgstr \"Nascondi le altre\"\n\n#: app/menu.js:156 app/menu.js:169\nmsgid \"Show All\"\nmsgstr \"Visualizza tutto\"\n\n#: app/menu.js:175 app/menu.js:188\nmsgid \"Bring All to Front\"\nmsgstr \"Porta tutto in primo piano\"\n\n#: app/html/settings.html:25\nmsgid \"Hide Avatars\"\nmsgstr \"Nascondi gli avatars\"\n\n#: app/html/settings.html:29\nmsgid \"Hide Message Previews\"\nmsgstr \"Nascondi le anteprime dei messaggi\"\n\n#: app/html/settings.html:40 app/html/settings.html:44\n#: app/html/settings.html:48 app/html/settings.html:52\nmsgid \"Use Proxy (Changes in proxy settings require app restart)\"\nmsgstr \"Usa un proxy (è necessario un riavvio)\"\n\n#: app/html/settings.html:50 app/html/settings.html:54\n#: app/html/settings.html:58 app/html/settings.html:62\nmsgid \"Https Proxy\"\nmsgstr \"Proxy HTTPS\"\n\n#: app/html/settings.html:57 app/html/settings.html:61\n#: app/html/settings.html:65 app/html/settings.html:69\nmsgid \"Save\"\nmsgstr \"Salva\"\n\n#: app/menu.js:91\nmsgid \"Phone info\"\nmsgstr \"Informazioni telefono\"\n\n#: app/html/settings.html:33\nmsgid \"Show Tray Icon\"\nmsgstr \"Visualizza icona nel vassoio\"\n\n#: app/html/settings.html:37\nmsgid \"Minimize to tray on startup\"\nmsgstr \"Minimizza nel vassoio all'avvio\"\n\n#: app/html/settings.html:41\nmsgid \"Auto start on login\"\nmsgstr \"Avvia automaticamente all'accesso\"\n\n#~ msgid \"Thumb Size\"\n#~ msgstr \"Dimensione anteprima\"\n"
  },
  {
    "path": "app/locale/messages.pot",
    "content": "# Whatsapp Desktop translations.\n#\nmsgid \"\"\nmsgstr \"\"\n\"Project-Id-Version: Whatsapp-Desktop\\n\"\n\"Report-Msgid-Bugs-To: \\n\"\n\"POT-Creation-Date: 2017-06-17 11:15+0200\\n\"\n\"PO-Revision-Date: 2017-06-17 12:12+0100\\n\"\n\"Last-Translator: void\\n\"\n\"Language-Team: \\n\"\n\"Language: en\\n\"\n\"MIME-Version: 1.0\\n\"\n\"Content-Type: text/plain; charset=UTF-8\\n\"\n\"Content-Transfer-Encoding: 8bit\\n\"\n\"X-Generator: Poedit 1.6.10\\n\"\n\n#: app/main.js:168 app/main.js:192 app/main.js:198 app/main.js:214\nmsgid \"Show\"\nmsgstr \"\"\n\n#: app/main.js:174 app/menu.js:146 app/main.js:198 app/menu.js:159\n#: app/main.js:204 app/main.js:220\nmsgid \"Hide\"\nmsgstr \"\"\n\n#: app/main.js:181 app/menu.js:163 app/menu.js:191 app/main.js:205\n#: app/menu.js:176 app/menu.js:204 app/main.js:211 app/menu.js:197\n#: app/main.js:227\nmsgid \"Quit\"\nmsgstr \"\"\n\n#: app/menu.js:6\nmsgid \"Edit\"\nmsgstr \"\"\n\n#: app/menu.js:9\nmsgid \"Undo\"\nmsgstr \"\"\n\n#: app/menu.js:14\nmsgid \"Redo\"\nmsgstr \"\"\n\n#: app/menu.js:22\nmsgid \"Cut\"\nmsgstr \"\"\n\n#: app/menu.js:27\nmsgid \"Copy\"\nmsgstr \"\"\n\n#: app/menu.js:32\nmsgid \"Paste\"\nmsgstr \"\"\n\n#: app/menu.js:37\nmsgid \"Select All\"\nmsgstr \"\"\n\n#: app/menu.js:45 app/html/settings.html:20\nmsgid \"Settings\"\nmsgstr \"\"\n\n#: app/menu.js:54\nmsgid \"View\"\nmsgstr \"\"\n\n#: app/menu.js:57\nmsgid \"Reload\"\nmsgstr \"\"\n\n#: app/menu.js:65\nmsgid \"Toggle Full Screen\"\nmsgstr \"\"\n\n#: app/menu.js:78\nmsgid \"Toggle Developer Tools\"\nmsgstr \"\"\n\n#: app/menu.js:93 app/menu.js:106\nmsgid \"Window\"\nmsgstr \"\"\n\n#: app/menu.js:97 app/menu.js:110\nmsgid \"Minimize\"\nmsgstr \"\"\n\n#: app/menu.js:102 app/html/settings.html:56 app/menu.js:115\n#: app/html/settings.html:60 app/html/settings.html:64\n#: app/html/settings.html:68\nmsgid \"Close\"\nmsgstr \"\"\n\n#: app/menu.js:109 app/menu.js:122\nmsgid \"Audio\"\nmsgstr \"\"\n\n#: app/menu.js:112 app/menu.js:125\nmsgid \"Increase Audio Rate by 20%\"\nmsgstr \"\"\n\n#: app/menu.js:121 app/menu.js:134\nmsgid \"Decrease Audio Rate by 20%\"\nmsgstr \"\"\n\n#: app/menu.js:139 app/menu.js:184 app/menu.js:152 app/menu.js:197\nmsgid \"About\"\nmsgstr \"\"\n\n#: app/menu.js:151 app/menu.js:164\nmsgid \"Hide Others\"\nmsgstr \"\"\n\n#: app/menu.js:156 app/menu.js:169\nmsgid \"Show All\"\nmsgstr \"\"\n\n#: app/menu.js:175 app/menu.js:188\nmsgid \"Bring All to Front\"\nmsgstr \"\"\n\n#: app/html/settings.html:25\nmsgid \"Hide Avatars\"\nmsgstr \"\"\n\n#: app/html/settings.html:29\nmsgid \"Hide Message Previews\"\nmsgstr \"\"\n\n#: app/html/settings.html:40 app/html/settings.html:44\n#: app/html/settings.html:48 app/html/settings.html:52\nmsgid \"Use Proxy (Changes in proxy settings require app restart)\"\nmsgstr \"\"\n\n#: app/html/settings.html:50 app/html/settings.html:54\n#: app/html/settings.html:58 app/html/settings.html:62\nmsgid \"Https Proxy\"\nmsgstr \"\"\n\n#: app/html/settings.html:57 app/html/settings.html:61\n#: app/html/settings.html:65 app/html/settings.html:69\nmsgid \"Save\"\nmsgstr \"\"\n\n#: app/menu.js:91\nmsgid \"Phone info\"\nmsgstr \"\"\n\n#: app/html/settings.html:33\nmsgid \"Show Tray Icon\"\nmsgstr \"\"\n\n#: app/html/settings.html:37\nmsgid \"Minimize to tray on startup\"\nmsgstr \"\"\n\n#: app/html/settings.html:41\nmsgid \"Auto start on login\"\nmsgstr \"\"\n"
  },
  {
    "path": "app/locale/pt_BR/messages.po",
    "content": "# Whatsapp Desktop translations.\n#\nmsgid \"\"\nmsgstr \"\"\n\"Project-Id-Version: Whatsapp-Desktop\\n\"\n\"Report-Msgid-Bugs-To: \\n\"\n\"POT-Creation-Date: 2017-08-05 17:02+0300\\n\"\n\"PO-Revision-Date: 2017-08-05 17:02+0300\\n\"\n\"Last-Translator: void\\n\"\n\"Language-Team: \\n\"\n\"Language: pt_br\\n\"\n\"MIME-Version: 1.0\\n\"\n\"Content-Type: text/plain; charset=UTF-8\\n\"\n\"Content-Transfer-Encoding: 8bit\\n\"\n\"X-Generator: Poedit 1.6.10\\n\"\n\n#: app/main.js:168 app/main.js:192 app/main.js:198 app/main.js:214\nmsgid \"Show\"\nmsgstr \"Mostrar\"\n\n#: app/main.js:174 app/menu.js:146 app/main.js:198 app/menu.js:159\n#: app/main.js:204 app/main.js:220\nmsgid \"Hide\"\nmsgstr \"Ocultar\"\n\n#: app/main.js:181 app/menu.js:163 app/menu.js:191 app/main.js:205\n#: app/menu.js:176 app/menu.js:204 app/main.js:211 app/menu.js:197\n#: app/main.js:227\nmsgid \"Quit\"\nmsgstr \"Sair\"\n\n#: app/menu.js:6\nmsgid \"Edit\"\nmsgstr \"Editar\"\n\n#: app/menu.js:9\nmsgid \"Undo\"\nmsgstr \"Desfazer\"\n\n#: app/menu.js:14\nmsgid \"Redo\"\nmsgstr \"Refazer\"\n\n#: app/menu.js:22\nmsgid \"Cut\"\nmsgstr \"Cortar\"\n\n#: app/menu.js:27\nmsgid \"Copy\"\nmsgstr \"Copiar\"\n\n#: app/menu.js:32\nmsgid \"Paste\"\nmsgstr \"Colar\"\n\n#: app/menu.js:37\nmsgid \"Select All\"\nmsgstr \"Selecionar Tudo\"\n\n#: app/menu.js:45 app/html/settings.html:20\nmsgid \"Settings\"\nmsgstr \"Configurações\"\n\n#: app/menu.js:54\nmsgid \"View\"\nmsgstr \"Visualizar\"\n\n#: app/menu.js:57\nmsgid \"Reload\"\nmsgstr \"Recarregar\"\n\n#: app/menu.js:65\nmsgid \"Toggle Full Screen\"\nmsgstr \"Tela Cheia\"\n\n#: app/menu.js:78\nmsgid \"Toggle Developer Tools\"\nmsgstr \"Ferramentas de Desenvolvedor\"\n\n#: app/menu.js:93 app/menu.js:106\nmsgid \"Window\"\nmsgstr \"Janela\"\n\n#: app/menu.js:97 app/menu.js:110\nmsgid \"Minimize\"\nmsgstr \"Minimizar\"\n\n#: app/menu.js:102 app/html/settings.html:56 app/menu.js:115\n#: app/html/settings.html:60 app/html/settings.html:64\n#: app/html/settings.html:68\nmsgid \"Close\"\nmsgstr \"Fechar\"\n\n#: app/menu.js:109 app/menu.js:122\nmsgid \"Audio\"\nmsgstr \"Áudio\"\n\n#: app/menu.js:112 app/menu.js:125\nmsgid \"Increase Audio Rate by 20%\"\nmsgstr \"Aumentar Áudio em 20%\"\n\n#: app/menu.js:121 app/menu.js:134\nmsgid \"Decrease Audio Rate by 20%\"\nmsgstr \"Diminuir Áudio em 20%\"\n\n#: app/menu.js:139 app/menu.js:184 app/menu.js:152 app/menu.js:197\nmsgid \"About\"\nmsgstr \"Sobre\"\n\n#: app/menu.js:151 app/menu.js:164\nmsgid \"Hide Others\"\nmsgstr \"Esconder Outros\"\n\n#: app/menu.js:156 app/menu.js:169\nmsgid \"Show All\"\nmsgstr \"Mostrar Tudo\"\n\n#: app/menu.js:175 app/menu.js:188\nmsgid \"Bring All to Front\"\nmsgstr \"Trazer Tudo à Frente\"\n\n#: app/html/settings.html:25\nmsgid \"Hide Avatars\"\nmsgstr \"Ocultar Avatars\"\n\n#: app/html/settings.html:29\nmsgid \"Hide Message Previews\"\nmsgstr \"Ocultar Preview de Mensagens \"\n\n#: app/html/settings.html:40 app/html/settings.html:44\n#: app/html/settings.html:48 app/html/settings.html:52\nmsgid \"Use Proxy (Changes in proxy settings require app restart)\"\nmsgstr \"Usar Proxy (Mudanças no proxy requerem o reínicio do app)\"\n\n#: app/html/settings.html:50 app/html/settings.html:54\n#: app/html/settings.html:58 app/html/settings.html:62\nmsgid \"Https Proxy\"\nmsgstr \"Proxy Https\"\n\n#: app/html/settings.html:57 app/html/settings.html:61\n#: app/html/settings.html:65 app/html/settings.html:69\nmsgid \"Save\"\nmsgstr \"Salvar\"\n\n#: app/menu.js:91\nmsgid \"Phone info\"\nmsgstr \"Informações do Telefone\"\n\n#: app/html/settings.html:33\nmsgid \"Show Tray Icon\"\nmsgstr \"Mostrar Ícone na Bandeja\"\n\n#: app/html/settings.html:37\nmsgid \"Minimize to tray on startup\"\nmsgstr \"Minimizar para a bandeja ao iniciar\"\n\n#: app/html/settings.html:41\nmsgid \"Auto start on login\"\nmsgstr \"Auto iniciar no login\"\n\n#~ msgid \"Thumb Size\"\n#~ msgstr \"Tamanho da Miniatura\"\n"
  },
  {
    "path": "app/locale/ru_RU/messages.po",
    "content": "# Whatsapp Desktop translations.\n#\nmsgid \"\"\nmsgstr \"\"\n\"Project-Id-Version: Whatsapp-Desktop\\n\"\n\"Report-Msgid-Bugs-To: \\n\"\n\"POT-Creation-Date: 2017-06-17 11:15+0200\\n\"\n\"PO-Revision-Date: 2017-11-27 19:54+0300\\n\"\n\"Last-Translator: void\\n\"\n\"Language-Team: \\n\"\n\"Language: ru\\n\"\n\"MIME-Version: 1.0\\n\"\n\"Content-Type: text/plain; charset=UTF-8\\n\"\n\"Content-Transfer-Encoding: 8bit\\n\"\n\"X-Generator: Poedit 1.5.4\\n\"\n\n#: app/main.js:168 app/main.js:192 app/main.js:198 app/main.js:214\nmsgid \"Show\"\nmsgstr \"Восстановить\"\n\n#: app/main.js:174 app/menu.js:146 app/main.js:198 app/menu.js:159\n#: app/main.js:204 app/main.js:220\nmsgid \"Hide\"\nmsgstr \"Скрыть\"\n\n#: app/main.js:181 app/menu.js:163 app/menu.js:191 app/main.js:205\n#: app/menu.js:176 app/menu.js:204 app/main.js:211 app/menu.js:197\n#: app/main.js:227\nmsgid \"Quit\"\nmsgstr \"Выход\"\n\n#: app/menu.js:6\nmsgid \"Edit\"\nmsgstr \"Правка\"\n\n#: app/menu.js:9\nmsgid \"Undo\"\nmsgstr \"Отменить\"\n\n#: app/menu.js:14\nmsgid \"Redo\"\nmsgstr \"Вернуть\"\n\n#: app/menu.js:22\nmsgid \"Cut\"\nmsgstr \"Вырезать\"\n\n#: app/menu.js:27\nmsgid \"Copy\"\nmsgstr \"Копировать\"\n\n#: app/menu.js:32\nmsgid \"Paste\"\nmsgstr \"Вставить\"\n\n#: app/menu.js:37\nmsgid \"Select All\"\nmsgstr \"Выделить всё\"\n\n#: app/menu.js:45 app/html/settings.html:20\nmsgid \"Settings\"\nmsgstr \"Настройки\"\n\n#: app/menu.js:54\nmsgid \"View\"\nmsgstr \"Вид\"\n\n#: app/menu.js:57\nmsgid \"Reload\"\nmsgstr \"Перезагрузить\"\n\n#: app/menu.js:65\nmsgid \"Toggle Full Screen\"\nmsgstr \"Во весь экран\"\n\n#: app/menu.js:78\nmsgid \"Toggle Developer Tools\"\nmsgstr \"Инструменты разработчика\"\n\n#: app/menu.js:93 app/menu.js:106\nmsgid \"Window\"\nmsgstr \"Окно\"\n\n#: app/menu.js:97 app/menu.js:110\nmsgid \"Minimize\"\nmsgstr \"Свернуть\"\n\n#: app/menu.js:102 app/html/settings.html:56 app/menu.js:115\n#: app/html/settings.html:60 app/html/settings.html:64\n#: app/html/settings.html:68\nmsgid \"Close\"\nmsgstr \"Закрыть\"\n\n#: app/menu.js:109 app/menu.js:122\nmsgid \"Audio\"\nmsgstr \"Звук\"\n\n#: app/menu.js:112 app/menu.js:125\nmsgid \"Increase Audio Rate by 20%\"\nmsgstr \"Увеличить громкость на 20%\"\n\n#: app/menu.js:121 app/menu.js:134\nmsgid \"Decrease Audio Rate by 20%\"\nmsgstr \"Уменьшить громкость на 20%\"\n\n#: app/menu.js:139 app/menu.js:184 app/menu.js:152 app/menu.js:197\nmsgid \"About\"\nmsgstr \"О программе\"\n\n#: app/menu.js:151 app/menu.js:164\nmsgid \"Hide Others\"\nmsgstr \"Скрыть остальные\"\n\n#: app/menu.js:156 app/menu.js:169\nmsgid \"Show All\"\nmsgstr \"Показать все окна\"\n\n#: app/menu.js:175 app/menu.js:188\nmsgid \"Bring All to Front\"\nmsgstr \"Расположить сверху\"\n\n#: app/html/settings.html:25\nmsgid \"Hide Avatars\"\nmsgstr \"Скрывать аватарки\"\n\n#: app/html/settings.html:29\nmsgid \"Hide Message Previews\"\nmsgstr \"Скрывать содержимое сообщений\"\n\n#: app/html/settings.html:40 app/html/settings.html:44\n#: app/html/settings.html:48 app/html/settings.html:52\nmsgid \"Use Proxy (Changes in proxy settings require app restart)\"\nmsgstr \"Использовать Proxy (Требуется перезапуск программы)\"\n\n#: app/html/settings.html:50 app/html/settings.html:54\n#: app/html/settings.html:58 app/html/settings.html:62\nmsgid \"Https Proxy\"\nmsgstr \"Https Proxy\"\n\n#: app/html/settings.html:57 app/html/settings.html:61\n#: app/html/settings.html:65 app/html/settings.html:69\nmsgid \"Save\"\nmsgstr \"Сохранить\"\n\n#: app/menu.js:91\nmsgid \"Phone info\"\nmsgstr \"Информация о телефоне\"\n\n#: app/html/settings.html:33\nmsgid \"Show Tray Icon\"\nmsgstr \"Показывать иконку в трее\"\n\n#: app/html/settings.html:37\nmsgid \"Minimize to tray on startup\"\nmsgstr \"Свернуть в трей при запуске\"\n\n#: app/html/settings.html:41\nmsgid \"Auto start on login\"\nmsgstr \"Автозапуск\"\n\n#~ msgid \"Thumb Size\"\n#~ msgstr \"Размер изображения\"\n"
  },
  {
    "path": "app/locale/tr_TR/messages.po",
    "content": "# Whatsapp Desktop translations.\n#\nmsgid \"\"\nmsgstr \"\"\n\"Project-Id-Version: Whatsapp-Desktop\\n\"\n\"Report-Msgid-Bugs-To: \\n\"\n\"POT-Creation-Date: 2018-01-23 19:25+0200\\n\"\n\"PO-Revision-Date: 2018-01-23 19:30+0300\\n\"\n\"Last-Translator: Demiray Muhterem <tulliana>\\n\"\n\"Language-Team: Demiray Muhterem <tulliana>\\n\"\n\"Language: tr_TR\\n\"\n\"MIME-Version: 1.0\\n\"\n\"Content-Type: text/plain; charset=UTF-8\\n\"\n\"Content-Transfer-Encoding: 8bit\\n\"\n\"X-Generator: Poedit 2.0.6\\n\"\n\n#: app/main.js:168 app/main.js:192 app/main.js:198 app/main.js:214\nmsgid \"Show\"\nmsgstr \"Göster\"\n\n#: app/main.js:174 app/menu.js:146 app/main.js:198 app/menu.js:159\n#: app/main.js:204 app/main.js:220\nmsgid \"Hide\"\nmsgstr \"Gizle\"\n\n#: app/main.js:181 app/menu.js:163 app/menu.js:191 app/main.js:205\n#: app/menu.js:176 app/menu.js:204 app/main.js:211 app/menu.js:197\n#: app/main.js:227\nmsgid \"Quit\"\nmsgstr \"Çıkış\"\n\n#: app/menu.js:6\nmsgid \"Edit\"\nmsgstr \"Düzenle\"\n\n#: app/menu.js:9\nmsgid \"Undo\"\nmsgstr \"Geri Al\"\n\n#: app/menu.js:14\nmsgid \"Redo\"\nmsgstr \"Yenile\"\n\n#: app/menu.js:22\nmsgid \"Cut\"\nmsgstr \"Kes\"\n\n#: app/menu.js:27\nmsgid \"Copy\"\nmsgstr \"Kopyala\"\n\n#: app/menu.js:32\nmsgid \"Paste\"\nmsgstr \"Yapıştır\"\n\n#: app/menu.js:37\nmsgid \"Select All\"\nmsgstr \"Tümünü Seç\"\n\n#: app/menu.js:45 app/html/settings.html:20\nmsgid \"Settings\"\nmsgstr \"Ayarlar\"\n\n#: app/menu.js:54\nmsgid \"View\"\nmsgstr \"Görünüm\"\n\n#: app/menu.js:57\nmsgid \"Reload\"\nmsgstr \"Tekrar Yükle\"\n\n#: app/menu.js:65\nmsgid \"Toggle Full Screen\"\nmsgstr \"Tam Ekran\"\n\n#: app/menu.js:78\nmsgid \"Toggle Developer Tools\"\nmsgstr \"Geliştirici Araçları\"\n\n#: app/menu.js:93 app/menu.js:106\nmsgid \"Window\"\nmsgstr \"Pencere\"\n\n#: app/menu.js:97 app/menu.js:110\nmsgid \"Minimize\"\nmsgstr \"Küçült\"\n\n#: app/menu.js:102 app/html/settings.html:56 app/menu.js:115\n#: app/html/settings.html:60 app/html/settings.html:64\n#: app/html/settings.html:68\nmsgid \"Close\"\nmsgstr \"Kapat\"\n\n#: app/menu.js:109 app/menu.js:122\nmsgid \"Audio\"\nmsgstr \"Ses\"\n\n#: app/menu.js:112 app/menu.js:125\nmsgid \"Increase Audio Rate by 20%\"\nmsgstr \"Ses Oranını %20 Arttır\"\n\n#: app/menu.js:121 app/menu.js:134\nmsgid \"Decrease Audio Rate by 20%\"\nmsgstr \"Ses Oranını %20 Azalt\"\n\n#: app/menu.js:139 app/menu.js:184 app/menu.js:152 app/menu.js:197\nmsgid \"About\"\nmsgstr \"Hakkında\"\n\n#: app/menu.js:151 app/menu.js:164\nmsgid \"Hide Others\"\nmsgstr \"Diğerlerini Gizle\"\n\n#: app/menu.js:156 app/menu.js:169\nmsgid \"Show All\"\nmsgstr \"Tümünü Göster\"\n\n#: app/menu.js:175 app/menu.js:188\nmsgid \"Bring All to Front\"\nmsgstr \"Herşeyi Öne Çıkar\"\n\n#: app/html/settings.html:25\nmsgid \"Hide Avatars\"\nmsgstr \"Avatarları Gizle\"\n\n#: app/html/settings.html:29\nmsgid \"Hide Message Previews\"\nmsgstr \"Özel Mesajları Gizle\"\n\n#: app/html/settings.html:40 app/html/settings.html:44\n#: app/html/settings.html:48 app/html/settings.html:52\nmsgid \"Use Proxy (Changes in proxy settings require app restart)\"\nmsgstr \"Proxy Kullan (Uygulamayı yeniden başlatmayı gerektirir)\"\n\n#: app/html/settings.html:50 app/html/settings.html:54\n#: app/html/settings.html:58 app/html/settings.html:62\nmsgid \"Https Proxy\"\nmsgstr \"Https Proxy\"\n\n#: app/html/settings.html:57 app/html/settings.html:61\n#: app/html/settings.html:65 app/html/settings.html:69\nmsgid \"Save\"\nmsgstr \"Kaydet\"\n\n#: app/menu.js:91\nmsgid \"Phone info\"\nmsgstr \"Telefon Bilgisi\"\n\n#: app/html/settings.html:33\nmsgid \"Show Tray Icon\"\nmsgstr \"Sistem Çubuğunda Göster\"\n\n#: app/html/settings.html:37\nmsgid \"Minimize to tray on startup\"\nmsgstr \"Başlangıçta sistem çubuğuna küçült\"\n\n#: app/html/settings.html:41\nmsgid \"Auto start on login\"\nmsgstr \"Girişte otomatik başlat\"\n"
  },
  {
    "path": "app/main.js",
    "content": "(function(scope) {\n    \"use strict\";\n\n    const pkg = require('./package')\n    const agents = require('./agents')\n    const electron = require('electron')\n    const fs = require('fs')\n    const request = require('request')\n    const nodeGettext = require('node-gettext')\n    const gettextParser = require('gettext-parser')\n    const AutoLaunch = require('auto-launch')\n    const log = require('electron-log')\n    const join = require('path').join\n    const notifier = require('node-notifier')\n    // electron-context-menu replaced with custom handler that supports spellcheck suggestions\n\n    const app = electron.app\n    const AppMenu = electron.Menu\n    const MenuItem = electron.MenuItem\n    const AppTray = electron.Tray\n    const NativeImage = electron.nativeImage\n    const BrowserWindow = electron.BrowserWindow\n    const globalShortcut = electron.globalShortcut\n\n    const isAlreadyLocked = app.requestSingleInstanceLock()\n    app.on('second-instance', (event, argv, workingDir) => {\n        if (whatsApp.window) {\n            if (whatsApp.window.isMinimized()) {\n                whatsApp.window.restore()\n            }\n            whatsApp.window.show()\n        }\n\n        var groupLinkOpenRequested = null\n        if (argv.length > 1) {\n            for(var i = 0; i < argv.length; i++) {\n                if (argv[i].indexOf(\"https://chat.whatsapp.com\") >= 0) {\n                    groupLinkOpenRequested = argv[i]\n                    log.info(\"Opening a group link: \" + groupLinkOpenRequested)\n                    break\n                }\n            }\n        }\n        if (groupLinkOpenRequested != null) {\n            whatsApp.window.webContents.executeJavaScript(\n                \"var el = document.createElement('a');\\\n                el.href = \\\"\" + groupLinkOpenRequested + \"\\\"; \\\n                el.style.display = \\\"none\\\"; \\\n                el.rel = 'noopener noreferrer'; \\\n                el.id = 'newlink'; \\\n                document.body.appendChild(el); \\\n                setTimeout(function() { var el = document.getElementById('newlink'); el.click(); document.body.removeChild(el); }, 500); \\\n                \"\n            )\n        }\n    })\n\n    // Needed for @electron/remote to work.\n    app.on('browser-window-created', (_, window) => {\n        require(\"@electron/remote/main\").enable(window.webContents)\n    })\n\n    if (!isAlreadyLocked) {\n        app.quit()\n    }\n\n    app.setAppUserModelId('whatsapp-desktop')\n    app.setAsDefaultProtocolClient('whatsapp')\n\n    if (process.argv.indexOf('--debug-log') >= 0) {\n        log.transports.file.level = 'debug'\n        log.info(\"Log level set from command line switch\")\n    }\n    if (process.argv.indexOf('--disable-gpu') >= 0) {\n        log.warn('Disabling GPU acceleration')\n        app.disableHardwareAcceleration()\n    }\n\n    const userDataDir = app.getPath('userData')\n    log.info(`Log init, file '${userDataDir}/whatsapp.log'`)\n\n    var groupLinkOpenRequested = null\n    if (process.argv.length > 1) {\n        for (var i = 0; i < process.argv.length; i++) {\n            if (process.argv[i].indexOf(\"https://chat.whatsapp.com\") >= 0) {\n                groupLinkOpenRequested = process.argv[i]\n                log.info(`Opening a group link: ${groupLinkOpenRequested}`)\n                break\n            }\n        }\n    }\n\n    var supportedLocales = [\n      'en_US',\n      'it_IT'\n    ]\n\n    global.gt = new nodeGettext()\n    for (var i in supportedLocales) {\n        const locale = supportedLocales[i]\n        let messagesFile = `${process.resourcesPath}/app/locale/${locale}/messages.po`\n        if (!fs.existsSync(messagesFile)) {\n          messagesFile = `./app/locale/${locale}/messages.po`\n        }\n        log.info(`Loading locale: ${locale}`)\n        gt.addTranslations(locale, 'messages', gettextParser.po.parse(fs.readFileSync(messagesFile)))\n    }\n    gt.setLocale('en_US')\n    gt.setTextDomain('messages')\n    global._ = function (t) {\n        return gt.gettext(t)\n    }\n\n    // Setting default language to system language if available\n    var syslang = (process.env.LC_ALL != undefined ? process.env.LC_ALL :\n        (process.env.LANG != undefined ? process.env.LANG :\n            (process.env.LC_MESSAGES != undefined ? process.env.LC_MESSAGES : 'en-US')))\n    if (supportedLocales.indexOf(syslang.split(\".\")[0]) >= 0) {\n        log.info(\"Setting locale \" + syslang.split(\".\")[0])\n        gt.setLocale(syslang.split(\".\")[0])\n    }\n    else {\n        log.warn(\"No supported locale found, defaulting to en_US\")\n    }\n\n    global.autolauncher = new AutoLaunch({\n        name: app.getName()\n    })\n    global.onlyOSX = function(callback) {\n        if (process.platform === 'darwin') {\n            return Function.bind.apply(callback, this, [].slice.call(arguments, 0))\n        }\n        return function () {}\n    }\n    global.onlyLinux = function(callback) {\n        if (process.platform === 'linux') {\n            return Function.bind.apply(callback, this, [].slice.call(arguments, 0))\n        }\n        return function() {}\n    }\n    global.onlyWin = function(callback) {\n        if (process.platform === 'win32' || process.platform === 'win64') {\n            return Function.bind.apply(callback, this, [].slice.call(arguments, 0))\n        }\n        return function() {}\n    }\n    global.config = {\n        defaultSettings: {\n            width: 1000,\n            height: 720,\n            thumbSize: 0\n        },\n\n        currentSettings: {},\n\n        init() {\n            config.loadConfiguration()\n            config.saveTimeout = null\n        },\n\n        loadConfiguration() {\n            log.info(\"Loading configuration\")\n            var settingsFile = app.getPath('userData') +\"/settings.json\"\n            try {\n                var data = fs.readFileSync(settingsFile)\n                if (data != \"\" && data != \"{}\" && data != \"[]\") {\n                    config.currentSettings = JSON.parse(data)\n                    log.info(\"Configuration loaded from \" + settingsFile)\n                }\n                else {\n                    config.currentSettings = config.defaultSettings\n                    log.warn(\"Configuration file empty, loading default\")\n                }\n            }\n            catch (e) {\n                config.currentSettings = config.defaultSettings\n                log.warn(\"Error loading configuration from \" + settingsFile + \" (\" + e + \"), loading default\")\n            }\n            // First time configuration - eg. before app init\n            if(config.get(\"disablegpu\") == true) {\n                log.warn(\"Disabling GPU acceleration\")\n                app.disableHardwareAcceleration()\n            }\n        },\n\n        applyConfiguration() {\n            log.info(\"Applying configuration\")\n            if (config.get(\"maximized\") && config.get(\"startminimized\") != true) {\n                whatsApp.window.maximize()\n            }\n            whatsApp.window.webContents.on('dom-ready', function (event, two) {\n                var fontSize = config.get(\"fontSize\")\n                fontSize = (fontSize == undefined) ? \"normal\" : fontSize\n\n                var fontCSS = (fontSize != \"normal\") ? \"font-size:\" + fontSize + \" !important;\" : \"\"\n                this.insertCSS('* { text-rendering: optimizeSpeed !important; -webkit-font-smoothing: subpixel-antialiased !important; '\n                    + fontCSS + '}')\n\n                var imgpath = config.get(\"background-image\")\n                if (imgpath != undefined) {\n                    var img = new Buffer(fs.readFileSync(imgpath)).toString('base64')\n                    var opacity = parseFloat(config.get(\"background-opacity\"))/100.0\n                    var mime = (imgpath.endsWith(\".jpg\") || imgpath.endsWith(\".jpeg\"))?\"image/jpg\":\n                        ((imgpath.endsWith(\".png\")?\"image/png\":((imgpath.endsWith(\".gif\")?\"image/gif\":\"\"))))\n                }\n\n                var noAvatar = '.chat-avatar img { display: none !important; }'\n                var noPreview = '.chat-secondary .chat-status{z-index: -999;}'\n\n                var thumbSize = '.image-thumb { width: '+ config.currentSettings.thumbSize + 'px  !important;' +\n                'height: '+ config.currentSettings.thumbSize + 'px !important;}' +\n                '.image-thumb img.image-thumb-body { width: auto !important;' +\n                'height: '+ config.currentSettings.thumbSize + 'px !important;}'\n\n                var darkMode = '#pane-side, #pane-side div div div div div div, #side header, #side header div div \\\n                #side div, #side div div, #side div div button, #side div div label, #side div div input, \\\n                #main footer, #main footer div, #main footer div div, #main header, #main header div div span, \\\n                #main header div div div span \\\n                { background-color: #2E2C2B !important; color: white; }\\n \\\n                .message-in { background-color: #75706E !important; }\\n \\\n                .message, .media-caption { color: #F0F0F0; }\\n \\\n                .message-in .tail-container, .message-in.tail-override-right .tail-container, \\\n                .message-out.tail-override-right .tail-container, .message-in.tail-override-left \\\n                .tail-container { background-image: none !important; }\\n \\\n                .block-compose, .block-compose .input-container { background-color: #2E2C2B !important; }\\n \\\n                .pane-chat-header, .chat.active, .chat, .chatlist-panel-search, .pane-header.pane-list-header, \\\n                .input-chatlist-search, .chatlist-panel-body, .chatlist-panel-search div label input, \\\n                .chatlist-panel-search div label, #app > div > div > div._3q4NP._1Iexl > div, .message > div > span \\\n                 { background-color: #2E2C2B !important;, background-image: none !important; }\\n \\\n                .chat-title, .header-title, .chat-body div span { color: white; }';\n\n                var blurImages = \"div.message-in img, div.message-out img { filter: contrast(25%) blur(8px) grayscale(75%); } \\n \\\n                div.message-in:hover img, div.message-out:hover img { filter: none; }\";\n\n                if (config.currentSettings.hideAvatars) {\n                    this.insertCSS(noAvatar)\n                }\n                if (config.currentSettings.hidePreviews){\n                    this.insertCSS(noPreview)\n                }\n                if (config.currentSettings.darkMode){\n                    this.insertCSS(darkMode)\n                }\n                if (config.currentSettings.blurImages) {\n                    this.insertCSS(blurImages)\n                }\n\n                if (config.currentSettings.thumbSize) {\n                    this.insertCSS(thumbSize)\n                }\n                if (config.get(\"customcss\") != undefined) {\n                    try {\n                        this.insertCSS(fs.readFileSync(config.get(\"customcss\"), \"utf-8\"))\n                        log.info(\"Loaded CSS file: \" + config.get(\"customcss\"))\n                    }\n                    catch (e) {\n                        log.error(\"CSS error: \" + e)\n                    }\n                }\n            })\n\n            if (config.get(\"useProxy\")) {\n                var session = whatsApp.window.webContents.session\n                var httpProxy = config.get(\"httpProxy\")\n                var httpsProxy = config.get(\"httpsProxy\") || httpProxy\n                if(httpProxy) {\n                    log.info(\"Proxy configured: \" + \"http=\"+ httpProxy +\";https=\" + httpsProxy)\n                    session.setProxy(\"http=\"+ httpProxy +\";https=\" + httpsProxy, function(){})\n                }\n                else {\n                    log.info(\"No proxy\")\n                }\n            }\n\n            // OSX Dock menu\n            if (process.platform == 'darwin') {\n                const dockMenu = AppMenu.buildFromTemplate([\n                  {label: 'Show main window', click () {\n                      whatsApp.window.show()\n                      whatsApp.window.setAlwaysOnTop(true)\n                      whatsApp.window.focus()\n                      whatsApp.window.setAlwaysOnTop(false)\n                  }}\n                ])\n                app.dock.setMenu(dockMenu)\n                app.on('activate', (event, hasVisibleWindows) => {\n                    whatsApp.window.show()\n                    whatsApp.window.setAlwaysOnTop(true)\n                    whatsApp.window.focus()\n                    whatsApp.window.setAlwaysOnTop(false)\n                })\n            }\n\n            if (config.get(\"trayicon\") != false && whatsApp.tray == undefined) {\n                whatsApp.createTray()\n            }\n            else if (config.get(\"trayicon\") == false && whatsApp.tray != undefined) {\n                log.info(\"Destroying tray icon\")\n                whatsApp.tray.destroy()\n                whatsApp.tray = undefined\n            }\n            if (config.get(\"autostart\") == true) {\n                autolauncher.isEnabled().then(function(enabled) {\n                    if (!enabled) {\n                        autolauncher.enable()\n                        log.info(\"Autostart enabled\")\n                    }\n                })\n            }\n            else {\n                autolauncher.isEnabled().then(function(enabled) {\n                    if (enabled) {\n                        autolauncher.disable()\n                        log.info(\"Autostart disabled\")\n                    }\n                })\n            }\n            whatsApp.window.setMenuBarVisibility(config.get(\"autoHideMenuBar\") != true)\n            whatsApp.window.setAutoHideMenuBar(config.get(\"autoHideMenuBar\") == true)\n        },\n\n        saveConfiguration() {\n            if (config.saveTimeout != null) {\n                clearTimeout(config.saveTimeout)\n                config.saveTimeout = null\n            }\n            config.saveTimeout = setTimeout(function() {\n                log.info(\"Saving configuration\")\n                config.set(\"maximized\", whatsApp.window.isMaximized())\n                if (config.currentSettings == undefined || JSON.stringify(config.currentSettings) == \"\") {\n                    // TODO: if we land here, we need to figure why and how. And fix that\n                    log.error(\"Configuration empty! This should not happen!\")\n                    return\n                }\n                fs.writeFileSync(app.getPath('userData') + \"/settings.json\", JSON.stringify(config.currentSettings), 'utf-8')\n                config.saveTimeout = null\n            }, 2000)\n        },\n\n        get (key) {\n            return config.currentSettings[key]\n        },\n\n        set (key, value) {\n            config.currentSettings[key] = value\n        },\n\n        unSet (key) {\n            if (config.currentSettings.hasOwnProperty(key)) {\n                delete config.currentSettings[key]\n            }\n        }\n    }\n\n    global.config.init()\n\n    global.whatsApp = {\n        init() {\n            global.whatsApp.warningIcon = false\n            whatsApp.tray = undefined\n            whatsApp.createMenu()\n            // Bitmask: LSB\n            // First bit: warning icon (phone disconnected)\n            // Second bit: new message red-dot\n            global.whatsApp.iconStatus = 0\n            global.whatsApp.oldIconStatus = 0\n            global.whatsApp.newVersion = null\n\n            whatsApp.clearCache()\n            whatsApp.openWindow()\n            config.applyConfiguration()\n        },\n\n        createMenu() {\n            log.info(\"Creating menu\")\n            whatsApp.menu =\n                AppMenu.buildFromTemplate(require('./menu'))\n                AppMenu.setApplicationMenu(whatsApp.menu)\n        },\n\n        setNormalTray() {\n            global.whatsApp.iconStatus = global.whatsApp.iconStatus & 0xFFFFFFFE\n            global.whatsApp.updateTrayIcon()\n        },\n\n        setWarningTray() {\n            global.whatsApp.iconStatus = global.whatsApp.iconStatus | 0x00000001\n            global.whatsApp.updateTrayIcon()\n        },\n\n        isWarningTrayIcon() {\n            return (global.whatsApp.iconStatus & 0x1) > 0\n        },\n\n        setNewMessageIcon() {\n            global.whatsApp.iconStatus = global.whatsApp.iconStatus | 0x00000002\n            global.whatsApp.updateTrayIcon()\n        },\n\n        clearNewMessageIcon() {\n            global.whatsApp.iconStatus = global.whatsApp.iconStatus & 0xFFFFFFFD\n            global.whatsApp.updateTrayIcon()\n        },\n\n        isNewMessageIcon() {\n            return (global.whatsApp.iconStatus & 0x2) > 0\n        },\n\n        updateTrayIcon() {\n            if (global.whatsApp.oldIconStatus == global.whatsApp.iconStatus) {\n                return\n            }\n            if (whatsApp.tray != undefined && process.platform != 'darwin') {\n                if (global.whatsApp.isWarningTrayIcon() && !global.whatsApp.isNewMessageIcon()) {\n                    log.info(\"Setting tray icon to warning\")\n                    whatsApp.tray.setImage(__dirname + '/assets/icon/iconWarning.png')\n                } if (global.whatsApp.isWarningTrayIcon() && global.whatsApp.isNewMessageIcon()) {\n                    log.info(\"Setting tray icon to warning with messages\")\n                    whatsApp.tray.setImage(__dirname + '/assets/icon/iconWarningWithMsg.png')\n                } if (!global.whatsApp.isWarningTrayIcon() && global.whatsApp.isNewMessageIcon()) {\n                    log.info(\"Setting tray icon to normal with messages\")\n                    whatsApp.tray.setImage(__dirname + '/assets/icon/iconWithMsg.png')\n                } else {\n                    log.info(\"Setting tray icon to normal\")\n                    whatsApp.tray.setImage(__dirname + '/assets/icon/icon.png')\n                }\n                log.info(\"Mask value: \" + global.whatsApp.iconStatus)\n            }\n            global.whatsApp.oldIconStatus = global.whatsApp.iconStatus\n        },\n\n        createTray() {\n            log.info(\"Creating tray icon\")\n            var trayImg = __dirname + '/assets/img/trayTemplate.png'\n            // Darwin requires black/white/transparent icon, other platforms does not\n            if (process.platform != 'darwin') {\n                trayImg = __dirname + '/assets/icon/icon.png'\n            }\n            whatsApp.tray = new AppTray(trayImg)\n\n            // Setting up a trayicon context menu\n            whatsApp.trayContextMenu = AppMenu.buildFromTemplate([\n                {label: _('Show'),\n                visible: config.get(\"startminimized\"), // Hide this option on start\n                click: function() {\n                    whatsApp.window.show()\n                    whatsApp.window.setAlwaysOnTop(true)\n                    whatsApp.window.focus()\n                    whatsApp.window.setAlwaysOnTop(false)\n                }},\n\n                {label: _('Hide'),\n                visible: !config.get(\"startminimized\"), // Show this option on start\n                click: function() {\n                    whatsApp.window.hide()\n                }},\n\n                // Quit WhatsApp\n                {label: _('Quit'), click: function() {\n                    app.quit()\n                }}\n            ])\n            whatsApp.tray.setContextMenu(whatsApp.trayContextMenu)\n\n            // Normal this will show the main window, but electron under Linux\n            // dosent work with the clicked event so we are using the above\n            // contextmenu insted - Rightclick the trayicon and pick Show\n            // WhatsApp\n            // More info:\n            // https://github.com/electron/electron/blob/master/docs/api/tray.md\n            // See the Platform limitations section.\n            whatsApp.tray.on('clicked', () => {\n                whatsApp.window.show()\n                whatsApp.window.setAlwaysOnTop(true)\n                whatsApp.window.focus()\n                whatsApp.window.setAlwaysOnTop(false)\n            })\n            whatsApp.tray.on('click', () => {\n                whatsApp.window.show()\n                whatsApp.window.setAlwaysOnTop(true)\n                whatsApp.window.focus()\n                whatsApp.window.setAlwaysOnTop(false)\n            })\n\n            whatsApp.tray.setToolTip('WhatsApp Desktop')\n        },\n\n        clearCache() {\n            log.info(\"Clearing cache\")\n            try {\n                fs.unlinkSync(app.getPath('userData') + '/Application Cache/Index')\n            }\n            catch (e) {\n                log.warn(\"Error clearing cache: \" + e)\n            }\n        },\n\n        openWindow() {\n            log.info(\"Open main window\")\n            whatsApp.window = new BrowserWindow({\n                \"y\": config.get(\"posY\"),\n                \"x\": config.get(\"posX\"),\n                \"width\": config.get(\"width\"),\n                \"height\": config.get(\"height\"),\n                \"minWidth\": 600,\n                \"minHeight\": 600,\n                //\"type\": \"toolbar\",\n                \"title\": \"WhatsApp\",\n                \"show\": false,\n                \"autoHideMenuBar\": config.get(\"autoHideMenuBar\") == true,\n                \"icon\": __dirname + \"/assets/icon/icon.png\",\n                \"webPreferences\": {\n                  \"nodeIntegration\": false,\n                  \"spellcheck\": true,\n                  \"preload\": join(__dirname, 'js', 'injected.js')\n                }\n            })\n\n            // Custom context menu with spellcheck suggestions\n            whatsApp.window.webContents.on('context-menu', (event, params) => {\n                const menu = new AppMenu()\n\n                // Add spelling suggestions if there's a misspelled word\n                if (params.misspelledWord) {\n                    if (params.dictionarySuggestions.length > 0) {\n                        params.dictionarySuggestions.forEach(suggestion => {\n                            menu.append(new MenuItem({\n                                label: suggestion,\n                                click: () => whatsApp.window.webContents.replaceMisspelling(suggestion)\n                            }))\n                        })\n                    } else {\n                        menu.append(new MenuItem({\n                            label: 'No suggestions available',\n                            enabled: false\n                        }))\n                    }\n                    menu.append(new MenuItem({ type: 'separator' }))\n\n                    // Add to dictionary option\n                    menu.append(new MenuItem({\n                        label: 'Add to Dictionary',\n                        click: () => whatsApp.window.webContents.session.addWordToSpellCheckerDictionary(params.misspelledWord)\n                    }))\n                    menu.append(new MenuItem({ type: 'separator' }))\n                }\n\n                // Standard editing options for editable fields\n                if (params.isEditable) {\n                    menu.append(new MenuItem({ label: 'Cut', role: 'cut', enabled: params.editFlags.canCut }))\n                    menu.append(new MenuItem({ label: 'Copy', role: 'copy', enabled: params.editFlags.canCopy }))\n                    menu.append(new MenuItem({ label: 'Paste', role: 'paste', enabled: params.editFlags.canPaste }))\n                    menu.append(new MenuItem({ label: 'Select All', role: 'selectAll', enabled: params.editFlags.canSelectAll }))\n                } else if (params.selectionText) {\n                    menu.append(new MenuItem({ label: 'Copy', role: 'copy' }))\n                }\n\n                // Link options\n                if (params.linkURL) {\n                    if (menu.items.length > 0) {\n                        menu.append(new MenuItem({ type: 'separator' }))\n                    }\n                    menu.append(new MenuItem({\n                        label: 'Copy Link',\n                        click: () => {\n                            electron.clipboard.writeText(params.linkURL)\n                        }\n                    }))\n                }\n\n                if (menu.items.length > 0) {\n                    menu.popup({ window: whatsApp.window })\n                }\n            })\n\n            // Setting User Agent\n            var userAgent = 'Mozilla/5.0 (X11; Linux x86_64; rv:141.0) Gecko/20100101 Firefox/141.0'\n\n            // Pick a random user agent from agents.json\n            if (agents.userAgents) {\n                const userAgentIndex = Math.floor(Math.random() * agents.userAgents.length)\n                userAgent = agents.userAgents[userAgentIndex]\n            }\n            log.info(`User Agent selected: ${userAgent}`)\n            whatsApp.window.webContents.setUserAgent(userAgent)\n\n            electron.session.defaultSession.webRequest.onBeforeSendHeaders(function (details, callback) {\n                details.requestHeaders['User-Agent'] = userAgent\n                callback({ cancel: false, requestHeaders: details.requestHeaders })\n            })\n\n            whatsApp.window.loadURL('https://web.whatsapp.com', {\n                userAgent: userAgent\n            })\n\n            whatsApp.window.webContents.on('did-finish-load', function() {\n                if (groupLinkOpenRequested != null) {\n                    whatsApp.window.webContents.executeJavaScript(\n                        \"var el = document.createElement('a');\\\n                        el.href = \\\"\" + groupLinkOpenRequested + \"\\\"; \\\n                        el.style.display = \\\"none\\\"; \\\n                        el.rel = 'noopener noreferrer'; \\\n                        el.id = 'newlink'; \\\n                        document.body.appendChild(el); \\\n                        setTimeout(function() { var el = document.getElementById('newlink'); el.click(); document.body.removeChild(el); }, 500); \\\n                        \"\n                    )\n                }\n                /* Checking for new version\n                var ep = \"https://api.github.com/repos/Enrico204/Whatsapp-Desktop/releases/latest\"\n                log.info(\"Checking for new versions (current version \"+pkg.version+\")\")\n                request.get({url: ep, headers:{'User-Agent':'Whatsapp-Desktop'}}, function(err, response, body) {\n                    if (!err && response != undefined && response.statusCode == 200) {\n                        var ghinfo = JSON.parse(body)\n                        global.whatsApp.newVersion = ghinfo['tag_name']\n                        if (ghinfo['tag_name'][0] == 'v'\n                                && ghinfo['tag_name'] != \"v\"+pkg.version\n                                && ghinfo['tag_name'].indexOf(\"beta\") == -1) {\n                            log.info(\"A new version is available: \" + ghinfo['tag_name'])\n                            var options = {\n                                title: \"Whatsapp-Desktop\",\n                                message: \"A new version is available, download it at https://github.com/Enrico204/Whatsapp-Desktop\",\n                                open: 'https://github.com/Enrico204/Whatsapp-Desktop/releases/latest',\n                                sound: true\n                            }\n                            notifier.notify(options, function (err, response) {\n                                    if (!err) log.warn(\"Error: \" + err)\n                                })\n                        } else {\n                            log.info(\"Already on latest version\");\n                        }\n                    } else {\n                        log.warn(\"Error checking updates (status \" + (response != undefined ? response.statusCode : \" not available\") + \"): \" + err)\n                    }\n                })*/\n            })\n\n            if (config.get(\"useProxy\")) {\n                var session = whatsApp.window.webContents.session\n                var httpProxy = config.get(\"httpProxy\")\n                var httpsProxy = config.get(\"httpsProxy\") || httpProxy\n                if (httpProxy) {\n                    session.setProxy(\"http=\"+ httpProxy +\";https=\" + httpsProxy, () => {})\n                }\n            }\n\n            if (config.get(\"startminimized\") != true) {\n                whatsApp.window.show()\n            }\n\n            whatsApp.window.on('move', (e, evt) => {\n                config.set(\"posX\", whatsApp.window.getBounds().x)\n                config.set(\"posY\", whatsApp.window.getBounds().y)\n                config.set(\"width\", whatsApp.window.getBounds().width)\n                config.set(\"height\", whatsApp.window.getBounds().height)\n                config.saveConfiguration()\n            })\n\n            whatsApp.window.on('resize', (e, evt) => {\n                config.set(\"posX\", whatsApp.window.getBounds().x)\n                config.set(\"posY\", whatsApp.window.getBounds().y)\n                config.set(\"width\", whatsApp.window.getBounds().width)\n                config.set(\"height\", whatsApp.window.getBounds().height)\n                config.saveConfiguration()\n            })\n\n            whatsApp.window.on('page-title-updated', onlyOSX((event, title) => {\n                var count = title.match(/\\((\\d+)\\)/)\n                    count = count ? count[1] : ''\n                app.dock.setBadge(count)\n                log.info(\"Badge updated: \" + count)\n            }))\n\n            whatsApp.window.on('page-title-updated', onlyLinux((event, title) => {\n                var count = title.match(/\\((\\d+)\\)/)\n                    count = count ? count[1] : ''\n\n                if (parseInt(count) > 0) {\n                    if (!whatsApp.window.isFocused() && global.config.get(\"quietMode\") !== true) {\n                      log.info(\"Flashing frame\")\n                      whatsApp.window.flashFrame(true)\n                    }\n                    var badge = NativeImage.createFromPath(app.getAppPath() + \"/assets/badges/badge-\" + (count > 9 ? 0 : count) +\".png\")\n                    whatsApp.window.setOverlayIcon(badge, \"new messages\")\n                    global.whatsApp.setNewMessageIcon()\n                }\n                else {\n                    whatsApp.window.setOverlayIcon(null, \"no new messages\")\n                    global.whatsApp.clearNewMessageIcon()\n                }\n                log.info(\"Badge updated: \" + count)\n            }))\n\n            whatsApp.window.on('page-title-updated', onlyWin((event, title) => {\n                var count = title.match(/\\((\\d+)\\)/)\n                    count = count ? count[1] : ''\n\n                if (parseInt(count) > 0) {\n                    if (!whatsApp.window.isFocused()) {\n                      whatsApp.window.flashFrame(true)\n                    }\n                    var badge = NativeImage.createFromPath(app.getAppPath() + \"/assets/badges/badge-\" + (count > 9 ? 0 : count) +\".png\")\n                    whatsApp.window.setOverlayIcon(badge, \"new messages\")\n                    global.whatsApp.setNewMessageIcon()\n                }\n                else {\n                    whatsApp.window.setOverlayIcon(null, \"no new messages\")\n                    global.whatsApp.clearNewMessageIcon()\n                }\n                log.info(\"Badge updated: \" + count)\n            }))\n\n            whatsApp.window.webContents.on(\"new-window\", (e, url) => {\n                electron.shell.openExternal(url)\n                e.preventDefault()\n            })\n\n            whatsApp.window.on('close', onlyOSX((e) => {\n                if (whatsApp.window.forceClose !== true) {\n                    e.preventDefault()\n                    whatsApp.window.hide()\n                }\n            }))\n\n            whatsApp.window.on('close', onlyWin((e) => {\n                if (whatsApp.tray == undefined) {\n                    app.quit()\n                }\n                else if (whatsApp.window.forceClose !== true) {\n                    e.preventDefault()\n                    whatsApp.window.hide()\n                }\n            }))\n\n            whatsApp.window.on('close', onlyLinux((e) => {\n                if (whatsApp.tray == undefined) {\n                    app.quit()\n                }\n                else if (whatsApp.window.forceClose !== true) {\n                    e.preventDefault()\n                    whatsApp.window.hide()\n                }\n            }))\n\n            whatsApp.window.on('close', () => {\n                if (settings.window) {\n                    settings.window.close()\n                    settings.window = null\n                }\n            })\n\n            // Toggle contextmenu content when window is shown\n            whatsApp.window.on(\"show\", function() {\n                if (whatsApp.tray != undefined) {\n                    whatsApp.trayContextMenu.items[0].visible = false\n                    whatsApp.trayContextMenu.items[1].visible = true\n\n                    // Need to re-set the contextmenu for this to work under Linux\n                    // TODO: Only trigger this under Linux\n                    whatsApp.tray.setContextMenu(whatsApp.trayContextMenu)\n                }\n            })\n\n            // Toggle contextmenu content when window is hidden\n            whatsApp.window.on(\"hide\", function() {\n                if (whatsApp.tray != undefined) {\n                    whatsApp.trayContextMenu.items[0].visible = true\n                    whatsApp.trayContextMenu.items[1].visible = false\n\n                    // Need to re-set the contextmenu for this to work under Linux\n                    // TODO: Only trigger this under Linux\n                    whatsApp.tray.setContextMenu(whatsApp.trayContextMenu)\n                }\n            })\n\n            app.on('before-quit', onlyOSX(() => {\n                whatsApp.window.forceClose = true\n            }))\n\n            app.on('before-quit', onlyLinux(() => {\n                whatsApp.window.forceClose = true\n            }))\n\n            app.on('before-quit', onlyWin(() => {\n                whatsApp.window.forceClose = true\n            }))\n\n            app.on('window-all-closed', onlyWin(() => {\n                app.quit()\n            }))\n        }\n    }\n\n    global.settings = {\n        init() {\n            // if there is already one instance of the window created show that one\n            if (settings.window) {\n                settings.window.show()\n            }\n            else {\n                settings.openWindow()\n                settings.createMenu()\n            }\n        },\n\n        createMenu() {\n            settings.menu = new AppMenu()\n            settings.menu.append(new MenuItem(\n                {\n                    label: \"close\",\n                    visible: false,\n                    accelerator: \"esc\",\n                    click() {\n                      settings.window.close()\n                    }\n                })\n            )\n            settings.menu.append(new MenuItem(\n                {\n                    label: 'Toggle DevTools',\n                    accelerator: 'Ctrl+Shift+I',\n                    visible: false,\n                    click() {\n                      settings.window.toggleDevTools()\n                    }\n                })\n            )\n            settings.menu.append(new MenuItem(\n                {\n                    label: 'Reload settings view',\n                    accelerator: 'CmdOrCtrl+r',\n                    visible: false,\n                    click() {\n                      settings.window.reload()\n                    }\n                })\n            )\n            settings.window.setMenu(settings.menu)\n            settings.window.setMenuBarVisibility(false)\n        },\n\n        openWindow() {\n            settings.window = new BrowserWindow(\n                {\n                    \"width\": 550,\n                    \"height\": 550,\n                    \"resizable\": true,\n                    \"center\": true,\n                    \"frame\": true,\n                    \"webPreferences\": {\n                        \"nodeIntegration\": true, \n                        \"contextIsolation\": false,\n                        \"enableRemoteModule\": true,\n                    }\n                }\n            )\n\n            settings.window.loadURL(\"file://\" + __dirname + \"/html/settings.html\")\n            settings.window.show()\n\n            settings.window.on(\"close\", () => {\n                settings.window = null\n            })\n        }\n    }\n\n    global.pkg = pkg\n    global.about = {\n        init() {\n            // if there is already one instance of the window created show that one\n            if (about.window){\n                about.window.show()\n            }\n            else {\n                about.openWindow()\n                about.window.setMenu(null)\n                about.window.setMenuBarVisibility(false)\n            }\n        },\n\n        openWindow() {\n            about.window = new BrowserWindow(\n                {\n                    \"width\": 600,\n                    \"height\": 450,\n                    \"resizable\": true,\n                    \"center\": true,\n                    \"frame\": true,\n                    \"webPreferences\": {\n                      \"nodeIntegration\": true,\n                    }\n                }\n            )\n\n            about.window.loadURL(\"file://\" + __dirname + \"/html/about.html\")\n            about.window.show()\n            about.window.webContents.on(\"new-window\", (e, url) => {\n                electron.shell.openExternal(url)\n                e.preventDefault()\n            })\n\n            about.window.on(\"close\", () => {\n                about.window = null\n            })\n        }\n    }\n\n    const {\n      ipcMain\n    } = electron\n    ipcMain.on('phoneinfoupdate', (event, arg) => {\n        global.phoneinfo.infos = arg\n        if (arg.info != \"NORMAL\") {\n            global.whatsApp.setWarningTray()\n        }\n        else {\n            global.whatsApp.setNormalTray()\n        }\n    })\n    ipcMain.on('notificationClick', (event, arg) => {\n        global.whatsApp.window.show()\n        global.whatsApp.window.setAlwaysOnTop(true)\n        global.whatsApp.window.focus()\n        global.whatsApp.window.setAlwaysOnTop(false)\n    })\n\n    global.phoneinfo = {\n        init () {\n            // if there is already one instance of the window created show that one\n            if (phoneinfo.window) {\n                phoneinfo.window.show()\n            }\n            else {\n                phoneinfo.openWindow()\n                phoneinfo.createMenu()\n            }\n        },\n\n        createMenu() {\n            phoneinfo.menu = new AppMenu()\n            phoneinfo.menu.append(new MenuItem(\n                {\n                    label: \"close\",\n                    visible: false,\n                    accelerator: \"esc\",\n                    click() {\n                      phoneinfo.window.close()\n                    }\n                })\n            )\n            phoneinfo.menu.append(new MenuItem(\n                {\n                    label: 'Reload phoneinfo view',\n                    accelerator: 'CmdOrCtrl+r',\n                    visible: false,\n                    click() {\n                      phoneinfo.window.reload()\n                    }\n                })\n            )\n            phoneinfo.menu.append(new MenuItem({\n                label: 'Toggle Developer Tools',\n                accelerator: (function() {\n                    if (process.platform == 'darwin')\n                        return 'Alt+Command+I'\n                    else\n                        return 'Ctrl+Shift+I'\n                })(),\n                click: function(item, focusedWindow) {\n                    if (focusedWindow)\n                        focusedWindow.toggleDevTools()\n                }\n            }))\n            phoneinfo.window.setMenu(phoneinfo.menu)\n            phoneinfo.window.setMenuBarVisibility(false)\n        },\n\n        openWindow() {\n            phoneinfo.window = new BrowserWindow(\n                {\n                    \"width\": 500,\n                    \"height\": 500,\n                    \"resizable\": true,\n                    \"center\": true,\n                    \"frame\": true,\n                    \"webPreferences\": {\n                      \"nodeIntegration\": true,\n                    }\n                }\n            )\n\n            phoneinfo.window.loadURL(\"file://\" + __dirname + \"/html/phoneinfo.html\")\n            phoneinfo.window.show()\n\n            phoneinfo.window.on(\"close\", () => {\n                phoneinfo.window = null\n            })\n        }\n    }\n\n    app.on('ready', () => {\n        whatsApp.init()\n        // setting of globalShortcut\n        if(config.get(\"globalshortcut\") == true) {\n            globalShortcut.register('CmdOrCtrl + Alt + W', function(){\n                if(whatsApp.window.isFocused())\n                    whatsApp.window.hide()\n                else\n                    whatsApp.window.show()\n            })\n        }\n    })\n\n    // unregistering the globalShorcut on quit of application\n    app.on('will-quit', function(){\n        if(config.get(\"globalshortcut\") == true) {\n            globalShortcut.unregisterAll()\n        }\n    })\n})(this)\n"
  },
  {
    "path": "app/menu.js",
    "content": "(function(scope) {\n    \"use strict\";\n\n    var template = [\n        {\n            label: \"&\" + _('Edit'),\n            submenu: [\n                {\n                    label: _('Undo'),\n                    accelerator: 'CmdOrCtrl+Z',\n                    role: 'undo'\n                },\n                {\n                    label: _('Redo'),\n                    accelerator: 'Shift+CmdOrCtrl+Z',\n                    role: 'redo'\n                },\n                {\n                    type: 'separator'\n                },\n                {\n                    label: _('Cut'),\n                    accelerator: 'CmdOrCtrl+X',\n                    role: 'cut'\n                },\n                {\n                    label: _('Copy'),\n                    accelerator: 'CmdOrCtrl+C',\n                    role: 'copy'\n                },\n                {\n                    label: _('Paste'),\n                    accelerator: 'CmdOrCtrl+V',\n                    role: 'paste'\n                },\n                {\n                    label: _('Select All'),\n                    accelerator: 'CmdOrCtrl+A',\n                    role: 'selectall'\n                },\n                {\n                    type: 'separator'\n                },\n                {\n                    label: _('Settings'),\n                    accelerator: 'CmdOrCtrl+,',\n                    click: function () {\n                        global.settings.init();\n                    }\n                }\n            ]\n        },\n        {\n            label: \"&\" + _('View'),\n            submenu: [\n                {\n                    label: _('Reload'),\n                    accelerator: 'CmdOrCtrl+R',\n                    click: function(item, focusedWindow) {\n                        if (focusedWindow)\n                            focusedWindow.reload();\n                    }\n                },\n                {type: 'separator'},\n                {\n                    label: _('Toggle Full Screen'),\n                    accelerator: (function() {\n                        if (process.platform == 'darwin')\n                            return 'Ctrl+Command+F';\n                        else\n                            return 'F11';\n                    })(),\n                    click: function(item, focusedWindow) {\n                        if (focusedWindow)\n                            focusedWindow.setFullScreen(!focusedWindow.isFullScreen());\n                    }\n                },\n                {\n                    label: _('Dark mode'),\n                    accelerator: 'CmdOrCtrl+Shift+Alt+D',\n                    type: 'checkbox',\n                    checked: (function() {\n                        return global.config.get(\"darkMode\");\n                    })(),\n                    click: function(item, focusedWindow) {\n                        global.config.set(\"darkMode\", global.config.get(\"darkMode\") != true);\n                        item.checked = global.config.get(\"darkMode\");\n                        global.config.saveConfiguration();\n                        global.config.applyConfiguration();\n                        if (focusedWindow)\n                            focusedWindow.reload();\n                    }\n                },\n                {\n                    label: _('Quiet mode'),\n                    accelerator: 'CmdOrCtrl+Shift+Alt+Q',\n                    type: 'checkbox',\n                    checked: (function() {\n                        return global.config.get(\"quietMode\");\n                    })(),\n                    click: function(item, focusedWindow) {\n                        global.config.set(\"quietMode\", global.config.get(\"quietMode\") != true);\n                        item.checked = global.config.get(\"quietMode\");\n                        global.config.saveConfiguration();\n                    }\n                },\n                {type: 'separator'},\n                {\n                    label: _('Toggle Developer Tools'),\n                    accelerator: (function() {\n                        if (process.platform == 'darwin')\n                            return 'Alt+Command+I';\n                        else\n                            return 'Ctrl+Shift+I';\n                    })(),\n                    click: function(item, focusedWindow) {\n                        if (focusedWindow)\n                            focusedWindow.toggleDevTools();\n                    }\n                },\n                {type: 'separator'},\n                {\n                    label: _('Phone info'),\n                    accelerator: (function() {\n                        if (process.platform == 'darwin')\n                            return 'Alt+Command+N';\n                        else\n                            return 'Ctrl+Shift+N';\n                    })(),\n                    click: function(item, focusedWindow) {\n                        if (focusedWindow)\n                            global.phoneinfo.init();\n                    }\n                }\n            ]\n        },\n        {\n            label: \"&\" + _('Window'),\n            role: 'window',\n            submenu: [\n                {\n                    label: _('Minimize'),\n                    accelerator: 'CmdOrCtrl+M',\n                    role: 'minimize'\n                },\n                {\n                    label: _('Close'),\n                    accelerator: 'CmdOrCtrl+W',\n                    role: 'close'\n                },\n                {\n                    label: 'close2',\n                    visible: false,\n                    accelerator: \"esc\",\n                    role: 'close'\n                }\n            ]\n        },\n        {\n            label: \"&\" + _('Audio'),\n            submenu: [\n                {\n                    label: _('Increase Audio Rate by 20%'),\n                    accelerator: 'CmdOrCtrl+=',\n                    click: function(item, focusedWindow) {\n                        focusedWindow && focusedWindow.webContents.executeJavaScript(\n                            \"window.audioRate = (window.audioRate || 1) + 0.2\"\n                        )\n                    }\n                },\n                {\n                    label: _('Decrease Audio Rate by 20%'),\n                    accelerator: 'CmdOrCtrl+-',\n                    click: function(item, focusedWindow) {\n                        focusedWindow && focusedWindow.webContents.executeJavaScript(\n                            \"window.audioRate = (window.audioRate || 1) - 0.2\"\n                        )\n                    }\n                }\n            ]\n        }\n    ];\n\n    if (process.platform == 'darwin') {\n        var name = 'WhatsApp Desktop';\n        template.unshift({\n            label: \"&\" + name,\n            submenu: [\n                {\n                    label: _('About') + \" \" + name,\n                    role: 'about'\n                },\n                {\n                    type: 'separator'\n                },\n                {\n                    label: _('Hide') + \" \" + name,\n                    accelerator: 'Command+H',\n                    role: 'hide'\n                },\n                {\n                    label: _('Hide Others'),\n                    accelerator: 'Command+Alt+H',\n                    role: 'hideothers'\n                },\n                {\n                    label: _('Show All'),\n                    role: 'unhide'\n                },\n                {\n                    type: 'separator'\n                },\n                {\n                    label: _('Quit'),\n                    accelerator: 'Command+Q',\n                    click: () => { require('electron').app.quit() }\n                },\n            ]\n        });\n        // Window menu.\n        template[3].submenu.push(\n            {\n                type: 'separator'\n            },\n            {\n                label: _('Bring All to Front'),\n                role: 'front'\n            }\n        );\n    } else if (process.platform == 'linux' || process.platform == 'win64' || process.platform == 'win32') {\n        template.unshift({\n            label: '&File',\n            submenu: [\n                {\n                    label: _('About'),\n                    click: () => { global.about.init(); }\n                },\n                {\n                    label: _('Quit'),\n                    accelerator: 'Ctrl+Q',\n                    click: () => { require('electron').app.quit() }\n                },\n            ]\n        });\n    }\n\n    module.exports = template;\n\n})(this);\n"
  },
  {
    "path": "app/package.json",
    "content": "{\n  \"name\": \"whatsapp-desktop\",\n  \"version\": \"0.5.3\",\n  \"license\": \"GPL-3.0\",\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"https://github.com/oOthkOo/whatsapp-desktop.git\"\n  },\n  \"main\": \"main.js\",\n  \"author\": \"oothkoo\",\n  \"description\": \"Unofficial WhatsApp Desktop Client for OSX, Linux and Windows. Build with Electron.\",\n  \"dependencies\": {\n    \"@electron/remote\": \"^2.1.3\",\n    \"auto-launch\": \"^5.0.1\",\n    \"electron-context-menu\": \"^0.9.1\",\n    \"electron-log\": \"^2.2.7\",\n    \"gettext-parser\": \"^1.2.2\",\n    \"node-gettext\": \"^2.0.0\",\n    \"node-notifier\": \"^8.0.1\",\n    \"request\": \"^2.83.0\"\n  }\n}\n"
  },
  {
    "path": "build/templates/debian/armv7l/compat",
    "content": "9\n"
  },
  {
    "path": "build/templates/debian/armv7l/control",
    "content": "Source: whatsapp-desktop\nVersion: {version}\nSection: net\nPriority: optional\nMaintainer: Tierry Danquin <contact@oothkoo.com>\nBuild-Depends: debhelper (>= 9)\nStandards-Version: 3.9.5\nHomepage: https://github.com/oothkoo/whatsapp-desktop\nVcs-Git: https://github.com/oothkoo/whatsapp-desktop.git\nPackage: whatsapp-desktop\nArchitecture: armhf\nDescription: Unofficial whatsapp web desktop client for OSX, Linux and Windows. Build with Electron.\n"
  },
  {
    "path": "build/templates/debian/armv7l/copyright",
    "content": "Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/\nUpstream-Name: whatsapp-desktop\nSource: <https://github.com/oothkoo/whatsapp-desktop>\n\nFiles: *\nCopyright: 2019 Tierry <contact@oothkoo.com>\nLicense: GPL-3.0+\n\nFiles: debian/*\nCopyright: 2017 Enrico204 <enrico204@gmail.com>\nLicense: GPL-3.0+\n\nLicense: GPL-3.0+\n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n .\n This package is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n GNU General Public License for more details.\n .\n You should have received a copy of the GNU General Public License\n along with this program. If not, see <http://www.gnu.org/licenses/>.\n .\n On Debian systems, the complete text of the GNU General\n Public License version 3 can be found in \"/usr/share/common-licenses/GPL-3\".\n\n# Please also look if there are files or directories which have a\n# different copyright/license attached and list them here.\n# Please avoid to pick license terms that are more restrictive than the\n# packaged work, as it may make Debian's contributions unacceptable upstream.\n"
  },
  {
    "path": "build/templates/debian/armv7l/docs",
    "content": "readme.md\n"
  },
  {
    "path": "build/templates/debian/armv7l/postinst",
    "content": "#!/bin/sh\n# postinst script\n#\n# see: dh_installdeb(1)\n\nset -e\n\n# summary of how this script can be called:\n#        * <postinst> `configure' <most-recently-configured-version>\n#        * <old-postinst> `abort-upgrade' <new version>\n#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>\n#          <new-version>\n#        * <postinst> `abort-remove'\n#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'\n#          <failed-install-package> <version> `removing'\n#          <conflicting-package> <version>\n# for details, see http://www.debian.org/doc/debian-policy/ or\n# the debian-policy package\n\ncase \"$1\" in\n\n  configure)\n    ln -s /opt/whatsapp-desktop/WhatsApp /usr/local/bin/WhatsApp\n    chown root:root /opt/whatsapp-desktop/chrome-sandbox\n    chmod 4755 /opt/whatsapp-desktop/chrome-sandbox\n  ;;\n\n  abort-upgrade|abort-remove|abort-deconfigure)\n    rm -f /usr/local/bin/WhatsApp\n    exit 0\n  ;;\n\n  *)\n    echo \"postinst called with unknown argument \\`$1'\" >&2\n    exit 1\n  ;;\n\nesac\n\n# dh_installdeb will replace this with shell code automatically\n# generated by other debhelper scripts.\n\n#DEBHELPER#\n\nexit 0\n"
  },
  {
    "path": "build/templates/debian/armv7l/prerm",
    "content": "#!/bin/sh\n# prerm script\n#\n# see: dh_installdeb(1)\n\nset -e\n\n# summary of how this script can be called:\n#        * <prerm> `remove'\n#        * <old-prerm> `upgrade' <new-version>\n#        * <new-prerm> `failed-upgrade' <old-version>\n#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>\n#        * <deconfigured's-prerm> `deconfigure' `in-favour'\n#          <package-being-installed> <version> `removing'\n#          <conflicting-package> <version>\n# for details, see http://www.debian.org/doc/debian-policy/ or\n# the debian-policy package\n\ncase \"$1\" in\n  remove|upgrade|deconfigure)\n    rm -f /usr/local/bin/WhatsApp\n  ;;\n\n  failed-upgrade)\n  ;;\n\n  *)\n    echo \"prerm called with unknown argument \\`$1'\" >&2\n    exit 1\n  ;;\nesac\n\n# dh_installdeb will replace this with shell code automatically\n# generated by other debhelper scripts.\n\n#DEBHELPER#\n\nexit 0\n"
  },
  {
    "path": "build/templates/debian/changelog",
    "content": "whatsapp-desktop (0.5.3) unstable; urgency=high\n\n  * Bugfix\n  \n -- Tierry <contact@oothkoo.com> 14 November 2025\n\nwhatsapp-desktop (0.5.2) unstable; urgency=high\n\n  * Bump electron to 17.0.0\n\n -- Tierry <contact@oothkoo.com> 18 June 2022\n\n whatsapp-desktop (0.5.1) unstable; urgency=high\n\n  * Bypass Facebook user agent verification\n\n -- Tierry <contact@oothkoo.com> 31 July 2019\n\nwhatsapp-desktop (0.5.0-1) unstable; urgency=low\n\n  * Bugfix\n  * Dark mode\n\n -- Enrico <enrico204@gmail.com>  Sat, 31 Mar 2018 11:25:47 +0200\n\nwhatsapp-desktop (0.4.2-1) unstable; urgency=low\n\n  * Fixed build issue\n\n -- Enrico <enrico204@gmail.com>  Wed, 03 Jan 2018 16:33:00 +0200\n\nwhatsapp-desktop (0.4.1-1) unstable; urgency=low\n\n  * Added flatpak/AppImage support\n  * Added feature: open main window on notification click\n  * Bugfix: fixed various bugs on macOS\n\n -- Enrico <enrico204@gmail.com>  Tue, 02 Jan 2018 22:08:05 +0200\n\nwhatsapp-desktop (0.4.0-1) unstable; urgency=low\n\n  * Bugfix\n  * German translations (thanks to @wotomg)\n\n -- Enrico <enrico204@gmail.com>  Sun, 31 Dec 2017 00:04:30 +0200\n\nwhatsapp-desktop (0.3.14-1) unstable; urgency=low\n\n  * Various bugfixes, update notifications\n\n -- Enrico <enrico204@gmail.com>  Sat, 04 Nov 2017 18:30:00 +0200\n\nwhatsapp-desktop (0.3.13-1) unstable; urgency=low\n\n  * Fixed some bugs\n  * Added a red-dot over tray icons on new messages (thanks to @Termuellinator)\n  * Added Spanish locale (thanks to @mlopezcoria)\n  * Added Portuguese Brazil locale (thanks to @Dssdiego)\n\n -- Enrico <enrico204@gmail.com>  Mon, 28 Aug 2017 20:29:02 +0200\n\nwhatsapp-desktop (0.3.12-1) unstable; urgency=medium\n\n  * Added ability to inject custom CSS\n  * Bugfix\n\n -- Enrico <enrico204@gmail.com>  Tue, 1 Aug 2017 00:00:00 +0200\n\nwhatsapp-desktop (0.3.11-1) unstable; urgency=medium\n\n  * Added logging system with CLI option\n  * Added auto-launch at login option\n  * Hide tray icon (#5)\n  * fixed tray icon click doesn't fire (#6)\n  * Fixed missing dependency\n  * Skip setting saving if object is invalid (see #8)\n  * Other bugfixes\n\n -- Enrico <enrico204@gmail.com>  Wed, 19 Jul 2017 12:46:00 +0200\n\nwhatsapp-desktop (0.3.6-1) unstable; urgency=medium\n\n  * NativeImage electron class renamed to nativeImage\n\n -- Enrico <enrico204@gmail.com>  Tue, 27 Jun 2017 21:58:04 +0200\n\nwhatsapp-desktop (0.3.5-1) unstable; urgency=medium\n\n  * Initial Release.\n\n -- Enrico <enrico204@gmail.com>  Wed, 21 Jun 2017 22:39:32 +0200\n\nwhatsapp-desktop (0.3.4-1) unstable; urgency=low\n\n  * Initial Release.\n\n -- Enrico <enrico204@gmail.com>  Wed, 21 Jun 2017 20:27:16 +0200\n"
  },
  {
    "path": "build/templates/debian/ia32/compat",
    "content": "9\n"
  },
  {
    "path": "build/templates/debian/ia32/control",
    "content": "Source: whatsapp-desktop\nVersion: {version}\nSection: net\nPriority: optional\nMaintainer: Tierry Danquin <contact@oothkoo.com>\nBuild-Depends: debhelper (>= 9)\nStandards-Version: 3.9.5\nHomepage: https://github.com/oothkoo/whatsapp-desktop\nVcs-Git: https://github.com/oothkoo/whatsapp-desktop.git\nPackage: whatsapp-desktop\nArchitecture: i386\nDescription: Unofficial whatsapp web desktop client for OSX, Linux and Windows. Build with Electron.\n"
  },
  {
    "path": "build/templates/debian/ia32/copyright",
    "content": "Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/\nUpstream-Name: whatsapp-desktop\nSource: <https://github.com/oothkoo/whatsapp-desktop>\n\nFiles: *\nCopyright: 2019 Tierry <contact@oothkoo.com>\nLicense: GPL-3.0+\n\nFiles: debian/*\nCopyright: 2017 Enrico204 <enrico204@gmail.com>\nLicense: GPL-3.0+\n\nLicense: GPL-3.0+\n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n .\n This package is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n GNU General Public License for more details.\n .\n You should have received a copy of the GNU General Public License\n along with this program. If not, see <http://www.gnu.org/licenses/>.\n .\n On Debian systems, the complete text of the GNU General\n Public License version 3 can be found in \"/usr/share/common-licenses/GPL-3\".\n\n# Please also look if there are files or directories which have a\n# different copyright/license attached and list them here.\n# Please avoid to pick license terms that are more restrictive than the\n# packaged work, as it may make Debian's contributions unacceptable upstream.\n"
  },
  {
    "path": "build/templates/debian/ia32/docs",
    "content": "readme.md\n"
  },
  {
    "path": "build/templates/debian/ia32/postinst",
    "content": "#!/bin/sh\n# postinst script\n#\n# see: dh_installdeb(1)\n\nset -e\n\n# summary of how this script can be called:\n#        * <postinst> `configure' <most-recently-configured-version>\n#        * <old-postinst> `abort-upgrade' <new version>\n#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>\n#          <new-version>\n#        * <postinst> `abort-remove'\n#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'\n#          <failed-install-package> <version> `removing'\n#          <conflicting-package> <version>\n# for details, see http://www.debian.org/doc/debian-policy/ or\n# the debian-policy package\n\ncase \"$1\" in\n\n  configure)\n    ln -s /opt/whatsapp-desktop/WhatsApp /usr/local/bin/WhatsApp\n    chown root:root /opt/whatsapp-desktop/chrome-sandbox\n    chmod 4755 /opt/whatsapp-desktop/chrome-sandbox\n  ;;\n\n  abort-upgrade|abort-remove|abort-deconfigure)\n    rm -f /usr/local/bin/WhatsApp\n    exit 0\n  ;;\n\n  *)\n    echo \"postinst called with unknown argument \\`$1'\" >&2\n    exit 1\n  ;;\n\nesac\n\n# dh_installdeb will replace this with shell code automatically\n# generated by other debhelper scripts.\n\n#DEBHELPER#\n\nexit 0\n"
  },
  {
    "path": "build/templates/debian/ia32/prerm",
    "content": "#!/bin/sh\n# prerm script\n#\n# see: dh_installdeb(1)\n\nset -e\n\n# summary of how this script can be called:\n#        * <prerm> `remove'\n#        * <old-prerm> `upgrade' <new-version>\n#        * <new-prerm> `failed-upgrade' <old-version>\n#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>\n#        * <deconfigured's-prerm> `deconfigure' `in-favour'\n#          <package-being-installed> <version> `removing'\n#          <conflicting-package> <version>\n# for details, see http://www.debian.org/doc/debian-policy/ or\n# the debian-policy package\n\ncase \"$1\" in\n  remove|upgrade|deconfigure)\n    rm -f /usr/local/bin/WhatsApp\n  ;;\n\n  failed-upgrade)\n  ;;\n\n  *)\n    echo \"prerm called with unknown argument \\`$1'\" >&2\n    exit 1\n  ;;\nesac\n\n# dh_installdeb will replace this with shell code automatically\n# generated by other debhelper scripts.\n\n#DEBHELPER#\n\nexit 0\n"
  },
  {
    "path": "build/templates/debian/x64/compat",
    "content": "9\n"
  },
  {
    "path": "build/templates/debian/x64/control",
    "content": "Source: whatsapp-desktop\nVersion: {version}\nSection: net\nPriority: optional\nMaintainer: Tierry Danquin <contact@oothkoo.com>\nBuild-Depends: debhelper (>= 9)\nStandards-Version: 3.9.5\nHomepage: https://github.com/oothkoo/whatsapp-desktop\nVcs-Git: https://github.com/oothkoo/whatsapp-desktop.git\nPackage: whatsapp-desktop\nArchitecture: amd64\nDescription: Unofficial whatsapp web desktop client for OSX, Linux and Windows. Build with Electron.\n"
  },
  {
    "path": "build/templates/debian/x64/copyright",
    "content": "Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/\nUpstream-Name: whatsapp-desktop\nSource: <https://github.com/oothkoo/whatsapp-desktop>\n\nFiles: *\nCopyright: 2019 Tierry <contact@oothkoo.com>\nLicense: GPL-3.0+\n\nFiles: debian/*\nCopyright: 2017 Enrico204 <enrico204@gmail.com>\nLicense: GPL-3.0+\n\nLicense: GPL-3.0+\n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n .\n This package is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n GNU General Public License for more details.\n .\n You should have received a copy of the GNU General Public License\n along with this program. If not, see <http://www.gnu.org/licenses/>.\n .\n On Debian systems, the complete text of the GNU General\n Public License version 3 can be found in \"/usr/share/common-licenses/GPL-3\".\n\n# Please also look if there are files or directories which have a\n# different copyright/license attached and list them here.\n# Please avoid to pick license terms that are more restrictive than the\n# packaged work, as it may make Debian's contributions unacceptable upstream.\n"
  },
  {
    "path": "build/templates/debian/x64/docs",
    "content": "readme.md\n"
  },
  {
    "path": "build/templates/debian/x64/postinst",
    "content": "#!/bin/sh\n# postinst script\n#\n# see: dh_installdeb(1)\n\nset -e\n\n# summary of how this script can be called:\n#        * <postinst> `configure' <most-recently-configured-version>\n#        * <old-postinst> `abort-upgrade' <new version>\n#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>\n#          <new-version>\n#        * <postinst> `abort-remove'\n#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'\n#          <failed-install-package> <version> `removing'\n#          <conflicting-package> <version>\n# for details, see http://www.debian.org/doc/debian-policy/ or\n# the debian-policy package\n\ncase \"$1\" in\n\n  configure)\n    ln -s /opt/whatsapp-desktop/WhatsApp /usr/local/bin/WhatsApp\n    chown root:root /opt/whatsapp-desktop/chrome-sandbox\n    chmod 4755 /opt/whatsapp-desktop/chrome-sandbox\n  ;;\n\n  abort-upgrade|abort-remove|abort-deconfigure)\n    rm -f /usr/local/bin/WhatsApp\n    exit 0\n  ;;\n\n  *)\n    echo \"postinst called with unknown argument \\`$1'\" >&2\n    exit 1\n  ;;\n\nesac\n\n# dh_installdeb will replace this with shell code automatically\n# generated by other debhelper scripts.\n\n#DEBHELPER#\n\nexit 0\n"
  },
  {
    "path": "build/templates/debian/x64/prerm",
    "content": "#!/bin/sh\n# prerm script\n#\n# see: dh_installdeb(1)\n\nset -e\n\n# summary of how this script can be called:\n#        * <prerm> `remove'\n#        * <old-prerm> `upgrade' <new-version>\n#        * <new-prerm> `failed-upgrade' <old-version>\n#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>\n#        * <deconfigured's-prerm> `deconfigure' `in-favour'\n#          <package-being-installed> <version> `removing'\n#          <conflicting-package> <version>\n# for details, see http://www.debian.org/doc/debian-policy/ or\n# the debian-policy package\n\ncase \"$1\" in\n  remove|upgrade|deconfigure)\n    rm -f /usr/local/bin/WhatsApp\n  ;;\n\n  failed-upgrade)\n  ;;\n\n  *)\n    echo \"prerm called with unknown argument \\`$1'\" >&2\n    exit 1\n  ;;\nesac\n\n# dh_installdeb will replace this with shell code automatically\n# generated by other debhelper scripts.\n\n#DEBHELPER#\n\nexit 0\n"
  },
  {
    "path": "build/templates/whatsapp.desktop",
    "content": "[Desktop Entry]\nType=Application\nVersion={version}\nName=WhatsApp\nComment=WhatsApp Desktop unofficial client\nExec=/opt/whatsapp-desktop/WhatsApp\nStartupNotify=false\nTerminal=false\nCategories=Network;InstantMessaging;\nIcon=whatsapp\nStartupWMClass=whatsapp-desktop\n"
  },
  {
    "path": "package.json",
    "content": "{\n    \"name\": \"whatsapp-desktop\",\n    \"version\": \"0.5.4\",\n    \"repository\": \"https://github.com/oOthkOo/whatsapp-desktop.git\",\n    \"description\": \"Unofficial WhatsApp Desktop Client for OSX, Linux and Windows. Build with Electron.\",\n    \"main\": \"main.js\",\n    \"scripts\": {\n        \"dev\": \"electron --no-sandbox --debug=5858 ./app\",\n        \"preinstall\": \"cd app && yarn\",\n        \"gettext\": \"xgettext app/*.js -j --omit-header -o app/locale/messages.pot && xgettext app/html/*.html -L JavaScript -j --omit-header -o app/locale/messages.pot\",\n        \"clean\": \"./scripts/clean.sh\",\n        \"build:win\": \"./scripts/build-win-x64.sh\",\n        \"build:osx\": \"./scripts/build-darwin-x64.sh\",\n        \"build:osxm1\": \"./scripts/build-darwin-arm64.sh\",\n        \"build:linux\": \"./scripts/build-linux-x64.sh\",\n        \"build:linux32\": \"./scripts/build-linux-x32.sh\",\n        \"build:linuxarmv7l\": \"./scripts/build-linux-armv7l.sh\",\n        \"build:all\": \"./scripts/build-all.sh\"\n    },\n    \"devDependencies\": {\n        \"electron\": \"^17.0.0\",\n        \"electron-packager\": \"15.5.1\"\n    },\n    \"dependencies\": {\n        \"process-nextick-args\": \"^1.0.7\",\n        \"util-deprecate\": \"^1.0.2\"\n    }\n}\n"
  },
  {
    "path": "packager.json",
    "content": "{\n  \"osx\": {\n    \"title\": \"WhatsApp\",\n    \"icon\": \"build/assets/osx/whatsapp.icns\",\n    \"icon-size\": 80,\n    \"contents\": [\n      {\n        \"x\": 438,\n        \"y\": 344,\n        \"type\": \"link\",\n        \"path\": \"/Applications\"\n      },\n      {\n        \"x\": 192,\n        \"y\": 344,\n        \"type\": \"file\"\n      }\n    ]\n  },\n  \"win\": {\n    \"title\": \"WhatsApp\",\n    \"icon\": \"build/assets/win/whatsapp.ico\",\n    \"icon-size\": 48,\n    \"app-bundle-id\": \"WhatsApp\"\n  },\n  \"linux\": {\n    \"title\": \"WhatsApp\",\n    \"icon\": \"build/assets/win/whatsapp.ico\",\n    \"icon-size\": 48,\n    \"app-bundle-id\": \"WhatsApp\"\n  }\n}\n"
  },
  {
    "path": "scripts/build-all.sh",
    "content": "#!/bin/bash\n\nnpm run clean\nnpm run build:win\nnpm run build:osx\nnpm run build:osxm1\nnpm run build:linux\nnpm run build:linux32\nnpm run build:linuxarmv7l\n"
  },
  {
    "path": "scripts/build-darwin-arm64.sh",
    "content": "#!/bin/bash\n\nexport APP_ARCH=\"arm64\"\nexport APP_PLATFORM=\"darwin\"\nexport APP_ICON_PATH=\"assets/osx/whatsapp.icns\"\n\n./scripts/build-zip.sh\n"
  },
  {
    "path": "scripts/build-darwin-x64.sh",
    "content": "#!/bin/bash\n\nexport APP_ARCH=\"x64\"\nexport APP_PLATFORM=\"darwin\"\nexport APP_ICON_PATH=\"assets/osx/whatsapp.icns\"\n\n./scripts/build-zip.sh\n"
  },
  {
    "path": "scripts/build-linux-armv7l.sh",
    "content": "#!/bin/bash\n\nexport APP_ARCH=\"armv7l\"\n\n./scripts/build-linux.sh\n"
  },
  {
    "path": "scripts/build-linux-x32.sh",
    "content": "#!/bin/bash\n\nexport APP_ARCH=\"ia32\"\n\n./scripts/build-linux.sh\n"
  },
  {
    "path": "scripts/build-linux-x64.sh",
    "content": "#!/bin/bash\n\nexport APP_ARCH=\"x64\"\n\n./scripts/build-linux.sh\n"
  },
  {
    "path": "scripts/build-linux.sh",
    "content": "#!/bin/bash\n\nsource ./scripts/constants.sh\n\nnpm install\nelectron-packager ./app $APP_NAME \\\n --overwrite \\\n --out=$DIST_DIR \\\n --package-manager=yarn \\\n --platform=linux \\\n --arch=$APP_ARCH \\\n --electron-version=$ELECTRON_VERSION \\\n --icon=$BUILD_DIR/assets/win/whatsapp.ico\n\nWORK_DIR=$OUTPUT_DIR\"/whatsapp-linux-\"$APP_ARCH\n\nrm -R $OUTPUT_DIR\nmkdir -p $WORK_DIR/DEBIAN\ncp $TEMPLATES_DIR/debian/$APP_ARCH/* $WORK_DIR/DEBIAN\ncp $TEMPLATES_DIR/debian/changelog $WORK_DIR/DEBIAN\nsed -i \"s/{version}/${APP_VERSION}/g\" $WORK_DIR/DEBIAN/control\nmkdir -p $WORK_DIR/opt/whatsapp-desktop/\nmkdir -p $WORK_DIR/usr/share/applications/\nmkdir -p $WORK_DIR/usr/share/icons/hicolor/128x128/apps/\nmkdir -p $WORK_DIR/usr/share/icons/hicolor/64x64/apps/\ncp \"app/assets/icon/icon@2x.png\" $WORK_DIR/usr/share/icons/hicolor/128x128/apps/whatsapp.png\ncp \"app/assets/icon/icon.png\" $WORK_DIR/usr/share/icons/hicolor/64x64/apps/whatsapp.png\ncp $TEMPLATES_DIR/whatsapp.desktop $WORK_DIR/usr/share/applications/\nsed -i \"s/{version}/${APP_VERSION}/g\" $WORK_DIR/usr/share/applications/whatsapp.desktop\ncp -r $BUILD_DIR/dist/WhatsApp-linux-$APP_ARCH/* $WORK_DIR/opt/whatsapp-desktop/\ndpkg-deb --build $WORK_DIR\nmv $WORK_DIR.deb $RELEASES_DIR\n"
  },
  {
    "path": "scripts/build-win-x64.sh",
    "content": "#!/bin/bash\n\nexport APP_ARCH=\"x64\"\nexport APP_PLATFORM=\"win32\"\nexport APP_ICON_PATH=\"assets/win/whatsapp.ico\"\n\n./scripts/build-zip.sh\n"
  },
  {
    "path": "scripts/build-zip.sh",
    "content": "#!/bin/bash\n\nsource ./scripts/constants.sh\n\nnpm install\nelectron-packager ./app $APP_NAME \\\n --overwrite \\\n --out=$DIST_DIR \\\n --package-manager=yarn \\\n --platform=$APP_PLATFORM \\\n --arch=$APP_ARCH \\\n --electron-version=$ELECTRON_VERSION \\\n --icon=$BUILD_DIR/$APP_ICON_PATH\n\nFILE_NAME=$APP_NAME-$APP_PLATFORM-$APP_ARCH\nAPP_DIR=$DIST_DIR/$FILE_NAME\n\ncd $APP_DIR\nzip -r $FILE_NAME.zip *\ncd ../../../\npwd\nmv $APP_DIR/$FILE_NAME.zip $RELEASES_DIR\n"
  },
  {
    "path": "scripts/clean.sh",
    "content": "#!/bin/bash\n\nsource ./scripts/constants.sh\n\nrm -Rf $DIST_DIR/*\nrm -Rf $OUTPUT_DIR/*\nrm -Rf $RELEASES_DIR/*\n"
  },
  {
    "path": "scripts/constants.sh",
    "content": "#!/bin/bash\n\nAPP_NAME=\"WhatsApp\"\nAPP_VERSION=\"0.5.4\"\nELECTRON_VERSION=\"17.0.0\"\nASSETS_DIR=\"./assets\"\nBUILD_DIR=\"./build\"\nDIST_DIR=\"$BUILD_DIR/dist\"\nRELEASES_DIR=\"$BUILD_DIR/releases\"\nTEMPLATES_DIR=\"$BUILD_DIR/templates\"\nOUTPUT_DIR=\"$BUILD_DIR/outputs\""
  }
]