2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

os x setup done, fixing localtime on each os x wakeup or application active status change

This commit is contained in:
John Preston
2014-11-12 23:30:26 +03:00
parent e0ef1d434d
commit 379c5f75e7
33 changed files with 236 additions and 86 deletions

View File

@@ -891,7 +891,7 @@ void History::updateNameText() {
}
bool History::updateTyping(uint64 ms, uint32 dots, bool force) {
if (!ms) ms = getms();
if (!ms) ms = getms(true);
bool changed = force;
for (TypingUsers::iterator i = typing.begin(), e = typing.end(); i != e;) {
if (ms >= i.value()) {
@@ -1325,7 +1325,7 @@ HistoryItem *History::doAddToBack(HistoryBlock *to, bool newBlock, HistoryItem *
void History::unregTyping(UserData *from) {
TypingUsers::iterator i = typing.find(from);
if (i != typing.end()) {
uint64 ms = getms();
uint64 ms = getms(true);
i.value() = ms;
updateTyping(ms, 0, true);
App::main()->topBar()->update();