Unigram icon indicating copy to clipboard operation
Unigram copied to clipboard

Missing cache system

Open HosseyNJF opened this issue 9 years ago • 13 comments

When your network is slow and unigram cant load all of the message list, you can feel the need of a cache system that saves all messages and only load new messages when updating.

HosseyNJF avatar Mar 30 '17 14:03 HosseyNJF

And sometimes, after unigram connected to the server, message list will be empty, and I need to search the chat I want to start my chat

Jack-Works avatar Aug 04 '17 02:08 Jack-Works

Sometimes it happens to me too, as a workaround i click on the 'go to last message' arrow, and the chat appears without leaving it.

bugada avatar Aug 04 '17 08:08 bugada

image Every time I open unigram it will be blank, and after I connected to the server, only chat related to the new message received will be displayed in chat list. It is not quite usable. image

Jack-Works avatar Aug 22 '17 06:08 Jack-Works

@bugada where is the "go to last message" arrow?

Jack-Works avatar Sep 10 '17 13:09 Jack-Works

Any progress on this? Without this feature, Unigram is almost not usable in the slow network (using the proxy). Thanks @larsschellhas

Jack-Works avatar Oct 21 '17 05:10 Jack-Works

I mean the Skype app does this, meaning is not impossible to integrate a cache

Charmandrigo avatar Oct 27 '17 21:10 Charmandrigo

The fact that is possible doesn’t mean that is east :) also Skype content is quite simple compared to telegram entities

FrayxRulez avatar Oct 27 '17 21:10 FrayxRulez

That’s due to China government, not due telegram servers.

FrayxRulez avatar Oct 28 '17 00:10 FrayxRulez

Well, what I'm saying is that everyone knows that a local messages database is important, but no one here is able to implement it.

FrayxRulez avatar Oct 28 '17 00:10 FrayxRulez

@Jack-Works It's not that we don't recognize the importance of a local cache. It's just that no one here currently has the skillset to implement it. Telegram's API has a non-trivial data model setup - Skype is simple by comparison.

I believe the intent is to implement at some point. But because no-one has the requisite skillset, we can't really do anything at this time.

callummoffat avatar Oct 28 '17 01:10 callummoffat

Don’t worry, I’m not offended at all. I understand your frustration completely, and I’m sure Fela can relate also.

We’d implement it immediately if we could, but unfortunately we can’t. If we ever get to the point where implementing a full local cache is feasible, I’ll try and make sure you’re the first to know.

From: Jack Works [mailto:[email protected]] Sent: Saturday, October 28, 2017 2:43 PM To: UnigramDev/Unigram [email protected] Cc: Callum Moffat [email protected]; Comment [email protected] Subject: Re: [UnigramDev/Unigram] Missing cache system (#242)

Oh.. I'm sorry for my offensive language. Just, feel sad.

On Sat, Oct 28, 2017, 09:23 Callum Moffat <[email protected]mailto:[email protected]> wrote:

@Jack-Works https://github.com/jack-works It's not that we don't recognize the importance of a local cache. It's just that no one here currently has the skillset to implement it. Telegram's API has a non-trivial data model setup - Skype is simple by comparison.

I believe the intent is to implement at some point. But because no-one has the requisite skillset, we can't really do anything at this time.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/UnigramDev/Unigram/issues/242#issuecomment-340129989, or mute the thread https://github.com/notifications/unsubscribe-auth/AFJBf3EwA0cc3QxOYGphNZe-mL-xM14rks5swoITgaJpZM4MuaBb .

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/UnigramDev/Unigram/issues/242#issuecomment-340131172, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AM3pI2nOKpWihZ1p7WPih6BOQbG02fpPks5swoapgaJpZM4MuaBb.

callummoffat avatar Oct 28 '17 01:10 callummoffat

Same problem. If you take a look at the code, I think you’ll find that even a partial cache implementation for Unigram (i.e. one that doesn’t fully cache all data) is rather complex.

Simple answer: unfortunately not. From: Jack Works [mailto:[email protected]] Sent: Saturday, October 28, 2017 2:56 PM To: UnigramDev/Unigram [email protected] Cc: Callum Moffat [email protected]; Comment [email protected] Subject: Re: [UnigramDev/Unigram] Missing cache system (#242)

Emm. Can we make it step by step? Like, make message list first cached without any message cached? At least there will no more blank screen.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/UnigramDev/Unigram/issues/242#issuecomment-340131873, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AM3pI8vTreThcALyb1wXtdhDwwNZEjkvks5swonJgaJpZM4MuaBb.

callummoffat avatar Oct 28 '17 02:10 callummoffat

This is going to be solved with X update: https://t.me/unigram/162

FrayxRulez avatar Feb 05 '18 11:02 FrayxRulez