mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Use 48 bit [User/Chat/Channel]Id, 56 bit PeerId.
This commit is contained in:
@@ -38,7 +38,7 @@ class GroupCall;
|
||||
class CloudImageView;
|
||||
|
||||
int PeerColorIndex(PeerId peerId);
|
||||
int PeerColorIndex(int32 bareId);
|
||||
int PeerColorIndex(BareId bareId);
|
||||
style::color PeerUserpicColor(PeerId peerId);
|
||||
PeerId FakePeerIdForJustName(const QString &name);
|
||||
|
||||
@@ -172,7 +172,7 @@ public:
|
||||
|| (id == kServiceNotificationsId);
|
||||
}
|
||||
[[nodiscard]] bool isServiceUser() const {
|
||||
return isUser() && !(id % 1000);
|
||||
return isUser() && !(id.value % 1000);
|
||||
}
|
||||
|
||||
[[nodiscard]] std::optional<TimeId> notifyMuteUntil() const {
|
||||
@@ -239,10 +239,6 @@ public:
|
||||
[[nodiscard]] const Ui::Text::String &topBarNameText() const;
|
||||
[[nodiscard]] QString userName() const;
|
||||
|
||||
[[nodiscard]] int32 bareId() const {
|
||||
return int32(uint32(id & 0xFFFFFFFFULL));
|
||||
}
|
||||
|
||||
[[nodiscard]] const base::flat_set<QString> &nameWords() const {
|
||||
return _nameWords;
|
||||
}
|
||||
|
Reference in New Issue
Block a user