Mercurial > libervia-backend
comparison frontends/src/quick_frontend/quick_chat.py @ 2018:7199e6bdb94e
quick_frontend, primitivus (chat): fixed widget bad locking + don't send notification when locked
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 24 Jul 2016 17:59:24 +0200 |
parents | 20fb71b656e3 |
children | c0ff84243650 |
comparison
equal
deleted
inserted
replaced
2017:7aa58b7a47e2 | 2018:7199e6bdb94e |
---|---|
151 """ | 151 """ |
152 @param type_: can be C.CHAT_ONE2ONE for single conversation or C.CHAT_GROUP for chat à la IRC | 152 @param type_: can be C.CHAT_ONE2ONE for single conversation or C.CHAT_GROUP for chat à la IRC |
153 """ | 153 """ |
154 self.lang = '' # default language to use for messages | 154 self.lang = '' # default language to use for messages |
155 quick_widgets.QuickWidget.__init__(self, host, target, profiles=profiles) | 155 quick_widgets.QuickWidget.__init__(self, host, target, profiles=profiles) |
156 self._locked = False # True when we are waiting for history/search | 156 self._locked = True # True when we are waiting for history/search |
157 # messageNew signals are cached when locked | 157 # messageNew signals are cached when locked |
158 self._cache = [] | 158 self._cache = [] |
159 assert type_ in (C.CHAT_ONE2ONE, C.CHAT_GROUP) | 159 assert type_ in (C.CHAT_ONE2ONE, C.CHAT_GROUP) |
160 self.current_target = target | 160 self.current_target = target |
161 self.type = type_ | 161 self.type = type_ |