Commit Graph

1654 Commits

Author SHA1 Message Date
Bart
88b678689a Make filter-tests timezone-independant (#1400)
* fixed timezone-problem timeFilterSpec.js

* fixed timezone-problem myDateFilterSpec.js
2017-05-10 16:36:08 +03:00
Igor Zhukov
facd3bfd2d Improved support for calls service messages 2017-05-10 16:35:18 +03:00
Igor Zhukov
e6395fac83 Added basic support for Telegram calls
Service messages for calls
Alert with download link
Closes #1404
Closes #1376
2017-05-10 16:05:50 +03:00
Igor Zhukov
092685db5a Supported sticker suggestions by emoji
Also fixed blinking suggestions list
Closes #1409
Closes #1332
Closes #814
2017-05-10 01:28:13 +03:00
Igor Zhukov
9962250799 Fixed forward to the same chat
Closes #1405
2017-05-09 19:55:56 +03:00
Bart
82957f1b91 Added structure to test directory, Fully tested filters.js (#1393)
* added tests for filter.js, Added structure to test-directory

In the gulpfile I changed some of the karma execution to ensure templates.js exists before the tests
Also removed some StandardJS errors from filters.js

* added tests to create at least 50% coverage for filters.js

* Added test for full coverage of filters.js

* fixed 2 side-cases

* Removed duplicate test, improved test-titles and added outcome clarification for dateOrTimeFilter

* Added test-init

While running ``gulp test`` there were a lot of warnings concerning i18n: key not found
This was because init.js was not run.
Because some parts of init.js were not relevant, I created test-init.js, only containing the part concerning localization.
Now the log is a lot cleaner when running ``gulp test``

* added 'use strict' to testing files

* changed local vars to this.

* improved clarity of mistery numbers

* improved in-test structure

* Improved shortUrl tests

* removed unnecessary code

* added cleanup to single test
2017-04-29 11:54:46 +03:00
Igor Zhukov
694584ec9f Improved read messages 2017-04-13 21:48:32 +03:00
Igor Zhukov
1d0709bcf6 Fixed regex for blocks of code 2017-04-13 17:31:18 +03:00
Igor Zhukov
fb1f274eba Merge branch 'pr/1360' 2017-04-13 16:53:23 +03:00
Igor Zhukov
81f041780e Simplified double click 2017-04-13 16:52:41 +03:00
Igor Zhukov
e4e9d66e49 Merge branch 'whipermr5-1177-update-message-preview-on-edit' 2017-04-13 16:36:59 +03:00
Igor Zhukov
64d1d4ed7e Merge branch '1177-update-message-preview-on-edit' of https://github.com/whipermr5/webogram into whipermr5-1177-update-message-preview-on-edit 2017-04-13 16:29:00 +03:00
Igor Zhukov
e1a6d8aee6 Merge branch 'pr/1379' 2017-04-13 16:01:32 +03:00
Igor Zhukov
857181617f Optimize performance
Less watch expressions
2017-04-13 16:00:53 +03:00
John Yong
5a14a4f926 Scroll chat to bottom upon dialog double click 2017-04-06 15:47:09 +08:00
John Yong
0bc21d74f7 Implement unsend messages. Fix #1340 2017-04-06 11:32:51 +08:00
John Yong
e3eed60b07 Update dialog upon edit of top message. Fix #1177 2017-04-06 10:29:11 +08:00
Viktor Oreshkin
580ddd7105 Update to layer 62
Signed-off-by: Viktor Oreshkin <stek29@users.noreply.github.com>
2017-04-04 01:42:13 +08:00
Igor Zhukov
6e6c74c5c1 New gmaps key
Closes #1364
(hopefully)
2017-04-03 19:59:32 +03:00
Igor Zhukov
b37bb78167 Hiding slash button when text is entered
Closes  #1373
2017-04-03 19:10:27 +03:00
Bart
03bc92006d Added tests for AppImPanelController, DocumentModalController, EmbedModalController and VideoModalController (#1362)
* Added test for AppImPanelControllerSpec, cleaned up style of all tests

All tests give 0 errors when running gulp standard
All credits for those test still go to @Ryuno-Ki, I did not functionaly change the testing code

* add Test for DocumentModalController

* added tests for the EmbedModalController and VideoModalController
2017-04-03 17:01:53 +03:00
Artem Kolnogorov
e2b1314427 truncating filename without extension (#1363) 2017-03-17 21:10:18 +03:00
Stapelpanda
63489fe23f Renamed 'hasOnlick' to 'hasOnclick', added function to StandardJS Globals (#1361) 2017-03-17 13:42:46 +03:00
Igor Zhukov
f3c849b78f Improved hide about styles
Also added separate i18n key
2017-03-14 19:29:51 +03:00
Igor Zhukov
181921d7d3 Disable editing for stickers 2017-03-14 19:19:38 +03:00
Igor Zhukov
8c3a29a0de Sync translations 2017-03-14 19:19:38 +03:00
Stapelpanda
283b701e9d Added close button to About section on Login page (#1359) 2017-03-14 19:19:01 +03:00
acran
a7d0e21575 allow editting mentions text for users with usernames (#1347)
when now holding the Alt key while selecting a user from the mentions
autocomplete suggestions the text inserted into the composer will be
forced to be in the

	@1234567 (firstname)

format (i.e. referring to the user by id and local firstname) instead of

	@username

even if the selected user has a username set.
This allows to manually edit the display text ("firstname") of the
mention.
2017-03-14 19:18:02 +03:00
Igor Zhukov
a82ab858b2 Fixed minor style bugs 2017-03-13 22:25:31 +03:00
Bart
5871645ca6 Fixed subset of StandardJS errors (#1356)
Fixed the errors that would definitly not change the functionality of the program
These include
* Unexpected && and || combinations
* variables with different values defined in same line of code
* Global variable never defined
* spacing/placing errors

These errors were not touched
* variables who are never used
* == and != errors
2017-03-13 21:57:24 +03:00
Bart
5099d14df9 Added test for ChangeLogModalController, AppFooterController and PeerSelectController (#1355)
* Added test for ChangeLogModalController
This commit changes the test scores as follows

|     | % Statements | % Branch | % Functions | % Lines |
|:---:|:------------:|:--------:|-------------|---------|
| Old |      3.5     |     0    | 0.36        | 3.52    |
| New |     4.22     |   0.36   | 1.08        | 4.24    |

* Added tests for AppFooterController
This commit changes the test scores as follows

|     | % Statements | % Branch | % Functions | % Lines |
|:---:|:------------:|:--------:|-------------|---------|
| Old |     4.22     |   0.36   |    1.08     |   4.24  |
| New |     4.29     |   0.36   |    1.44     |   4.31  |

* Added tests for PeerSelectController
This commit changes the test scores as follows

|     | % Statements | % Branch | % Functions | % Lines |
|:---:|:------------:|:--------:|-------------|---------|
| Old |     4.29     |   0.36   |    1.44     |   4.31  |
| New |     5.61     |   1.16   |    2.88     |   5.64  |

* Change Time-out time to variable
Instead of doing time-outs based on a constant, the time-out is based on a variable. This will make changing the time of time-out easier.

* Rename AppFooterController test, removed unnecessary test, fixed code style

Renamed test/unit/AppFooterController.js to test/unit/AppFooterControllerSpec.js to conform with other test files.
Removed a test in the renamed file. It only tested if the controller would compile given the test-environment, something that was implicitly tested in the other (now only) test.
The code style over all test files was not consistent (spacing), this is fixed.

* Changed style to StandardJS

When running "standard test/unit/..", there were some errors on the code-style of the tests
These are fixed
2017-03-13 21:57:11 +03:00
Akshay S Dinesh
0312a00729 fix #1348 message on inviting multiple users (#1349) 2017-03-13 21:18:57 +03:00
Igor Zhukov
94a94b864d Disabled chrome temps by default
Improved mime types handling for blobs
2017-03-13 21:15:46 +03:00
Igor Zhukov
5c9f4b00b7 Started to clean popup opener 2017-02-10 12:27:44 +03:00
Igor Zhukov
1a93895d4c Improved silent messages support 2017-01-30 17:22:16 +03:00
Viktor Oreshkin
594bbe4496 Fix Android-like format triggers offset calc (#1333) 2017-01-30 11:55:25 +03:00
Igor Zhukov
f0eee9f963 Sync translations 2017-01-19 18:38:40 +03:00
Igor Zhukov
694938a788 Improved search in history
Closes #1328
2017-01-19 18:30:40 +03:00
Igor Zhukov
d6d84bc835 Fixed webapp manifest
Fixes #1306
2017-01-17 15:27:44 +03:00
Igor Zhukov
35fdf3d8f1 Fixed flicker after edit 2017-01-17 15:27:44 +03:00
Igor Zhukov
3086dad219 Fixed edit messages with myself
Close #1321
2017-01-17 15:27:44 +03:00
Joseph Stevens
bef95d7fed Use same format triggers as Android (#1323) 2017-01-16 15:19:02 +03:00
Igor Zhukov
4b4fa8aca7 Fixes buttons inside message text field 2017-01-12 21:02:57 +03:00
Igor Zhukov
35f065dee1 Improved PUSH-notification when the app is launched
Possbly fixes #1301
2017-01-12 21:02:28 +03:00
Igor Zhukov
a862c17bac Yarn update 2017-01-12 19:18:26 +03:00
Igor Zhukov
7a1d922972 Added z-index to emoji icon in composer 2017-01-12 19:18:26 +03:00
Igor Zhukov
ba7e57879e Remove unused ErrorService dep
Closes #1295
2017-01-12 19:18:26 +03:00
Neil Kalman
9b650c5c8f fix scrollbar for RTL languages (#1150)
make the behavior same as before for both RTL and LTR languages

make solution use dynamic scrollbar size

as suggested in CR
2017-01-12 19:12:52 +03:00
Igor Zhukov
90cedfac37 Sync translations 2017-01-12 18:53:20 +03:00
Igor Zhukov
4be5cedec2 Added support for Yarn 2017-01-12 18:53:20 +03:00