mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-20 02:08:57 +00:00
Provide fallback if pinnedConversationIds not already set
This commit is contained in:
committed by
Josh Perez
parent
59a181bd30
commit
d7f3b39fec
@@ -416,7 +416,7 @@ Whisper.ConversationView = Whisper.View.extend({
|
|||||||
|
|
||||||
setPin(value: boolean) {
|
setPin(value: boolean) {
|
||||||
if (value) {
|
if (value) {
|
||||||
if (window.storage.get('pinnedConversationIds').length >= 4) {
|
if (window.storage.get('pinnedConversationIds', []).length >= 4) {
|
||||||
this.showToast(Whisper.PinnedConversationsFullToast);
|
this.showToast(Whisper.PinnedConversationsFullToast);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user