Info

Open Website
WARNING! Clicking "Open Website" will launch a third-party app, use at your own risk. We do not recommend logging in with your main account.

Testing and Issues

You can test this app and submit issues during the testing period of the Javascript Contest, Stage 1 contest.

Entries with serious issues will not be able to win the contest, but even minor issues might be important for overall results.

Voting

35

Comments

MTProto implementation based on Webogram.

Known issues:
- old messages loading on scroll not implemented yet
- dialogs list reordering on updates not implemented yet
- only photo media type supported in conversation

P.S. Check also responsive design
3
You have not added any comments yet...
by rating

Issues

Fair Mammoth Jan 10, 2020 at 02:40
The speed of the app you submitted is below average – messages are loaded with a delay; when a certain chat is opened again, initial load can be extremely long.

The contest task is almost completed, the profile photo implementation is missing for the signup flow. The monkey animation is incorrect when entering a code, also it's not possible to manually delete a country prefix. The app doesn’t fully comply with the design of the provided mockups.

The app relies on pure Webogram MTProto implementation, using websockets would increase the app's performance. Transferred size: 594KB.

The current scroll implementation leads to unwanted jumps when scrolling up.
______
Upd. Thanks for the clarifications about prefixes. Here's the scrolling issue: https://contest.com/javascript-web/entry1111#issue10310
Google Chrome 78.0.3904, macOS 10.15.2
20
Sleek Mammoth Jan 10, 2020 at 10:28
> initial load can be long
yep, there is another issue about this from Funny Dodo. My fault. I've already fixed this, but it's another story

> not possible to delete a country prefix
it's possible, there is separate input for country code; you need to switch to it first. Maybe it's not obviously. It's because country code length varies depending on country and that input stretches accordingly

> doesn’t comply with mockups
login/signup is pixel perfect; dialogs may be not 100% pixel perfect

> relies on pure Webogram
yes, but without Angular, jQuery etc

> websockets would increase performance
there are a lot of places to optimize performance and minimize size. "Make It Work Make It Right Make It Fast" (c) Kent Beck :)

> scroll implementation
can't reproduce

Also implemented:
- mobile-friendly;
- message sending (with Enter);
- message receiving;
- dialogs search.
Fair Mammoth Jan 10, 2020 at 14:05
The scrolling issue:
Google Chrome 78.0.3904, macOS 10.15.2
20
Sleek Mammoth Jan 10, 2020 at 14:54
thanks for clarification. Very interesting :)
I have no such problem, but will try to figure it out
The country dropdown does not fit to the screen. On first open it does not filter the list according to the existing value.
But overall looks impressive!
Windows 10, Firefox
1
Sleek Mammoth Nov 18, 2019 at 20:05
Thanks for feedback
> On first open it does not filter the list according to the existing value.
If it do this then how to select other country without filtering first?
Really, very good work.
1
Sleek Mammoth Nov 18, 2019 at 20:55
Thank you
No phone preformatting and static monkey, also loading of messages takes really long time.
But overall work with chats is good and UI seems right. Good job
1
Sleek Mammoth Nov 18, 2019 at 21:19
Thanks. Yep, there is a way to optimize dialogs and messages loading speed... It takes too long now because script is waiting for loading of all users profile photos and only then renders UI. When you open the same chat again it will use cached profile photos and therefore rendering will be much faster. It can be optimized by showing chat with default profile photos and then try to load real photos
Anton Krylov Nov 18, 2019 at 21:04
Load 10 seconds, after this I tried to input the phone and wait 20 seconds, then go to the chat page, w/o any codes/smth and infinite spinner. IDK what's going on here)
1
Sleek Mammoth Nov 18, 2019 at 21:20
it's very strange. Could you provide a screenshot of browser's console? Are there any errors?
D
Deleted Account Nov 18, 2019 at 21:27
cant login, "sms code expired".
Sleek Mammoth Nov 19, 2019 at 13:26
weird
Anton Krylov Nov 18, 2019 at 21:30
On desktop version login works, but then auth fail, and after 30 seconds everything works fine. Issue was about phone
Sleek Mammoth Nov 19, 2019 at 08:33
These console errors may be just ignored. They were handled properly and then written to console for debug purposes.
Login with 2FA, catch "Error" – 401 – "AUTH_KEY_UNREGISTERED" – 2 – 1 on first loading. After page refreshing it's working.

List of messages, searching function and messages display is working good, but with unsupported attachment (like Stickers). Another good thing is mobile adaptation. Nice.
Macbook Pro '15 2018, MacOS, Safari 12.0.3
Sleek Mammoth Nov 19, 2019 at 08:31
Console error 'AUTH_KEY_UNREGISTERED' may be just ignored. It doesn't affect anything. It was handled properly and then written to console for debug purposes.
SMS code expired
mac chrome
Sleek Mammoth Nov 19, 2019 at 08:35
it's weird. Server returned "PHONE_CODE_EXPIRED" error.
Nobody added any issues yet...