inboxView: Ensure Conversation exists for our own number

This commit is contained in:
Scott Nonnenberg 2018-10-17 17:17:01 -07:00
parent a24d9f9979
commit b9cc17b81a

View file

@ -96,7 +96,7 @@
new Whisper.FontSizeView({ el: this.$el }); new Whisper.FontSizeView({ el: this.$el });
const ourNumber = textsecure.storage.user.getNumber(); const ourNumber = textsecure.storage.user.getNumber();
const me = ConversationController.get(ourNumber); const me = ConversationController.getOrCreate(ourNumber, 'private');
this.mainHeaderView = new Whisper.ReactWrapperView({ this.mainHeaderView = new Whisper.ReactWrapperView({
className: 'main-header-wrapper', className: 'main-header-wrapper',
Component: Signal.Components.MainHeader, Component: Signal.Components.MainHeader,