mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
version 0.8.8.dev - audio listened status, photo caption display, map places name-address display, gray muted badges, invite links support, some fixes
This commit is contained in:
@@ -40,11 +40,16 @@ static const NotifySettingsPtr EmptyNotifySettings = NotifySettingsPtr(1);
|
||||
extern NotifySettings globalNotifyAll, globalNotifyUsers, globalNotifyChats;
|
||||
extern NotifySettingsPtr globalNotifyAllPtr, globalNotifyUsersPtr, globalNotifyChatsPtr;
|
||||
|
||||
inline bool isNotifyMuted(NotifySettingsPtr settings) {
|
||||
if (settings == UnknownNotifySettings || settings == EmptyNotifySettings) {
|
||||
return false;
|
||||
inline bool isNotifyMuted(NotifySettingsPtr settings, int32 *changeIn = 0) {
|
||||
if (settings != UnknownNotifySettings && settings != EmptyNotifySettings) {
|
||||
int32 t = unixtime();
|
||||
if (settings->mute > t) {
|
||||
if (changeIn) *changeIn = settings->mute - t + 1;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return (settings->mute > unixtime());
|
||||
if (changeIn) *changeIn = 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
style::color peerColor(int32 index);
|
||||
@@ -155,6 +160,7 @@ struct ChatData : public PeerData {
|
||||
LastAuthors lastAuthors;
|
||||
ImagePtr photoFull;
|
||||
PhotoId photoId;
|
||||
QString invitationUrl;
|
||||
// geo
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user