Browse Source

Rebrand back to "Envelope"

Add back button to QR Reader page
feature/add-notifications
Tovi Jaeschke-Rogers 2 years ago
parent
commit
64be7031a4
82 changed files with 220 additions and 194 deletions
  1. +3
    -3
      Backend/Api/Auth/AddProfileImage.go
  2. +4
    -4
      Backend/Api/Auth/AddProfileImage_test.go
  3. +2
    -2
      Backend/Api/Auth/ChangePassword.go
  4. +3
    -3
      Backend/Api/Auth/ChangePassword_test.go
  5. +2
    -2
      Backend/Api/Auth/ChangeUserMessageExpiry.go
  6. +2
    -2
      Backend/Api/Auth/ChangeUserMessageExpiry_test.go
  7. +2
    -2
      Backend/Api/Auth/Login.go
  8. +3
    -3
      Backend/Api/Auth/Login_test.go
  9. +1
    -1
      Backend/Api/Auth/Logout.go
  10. +3
    -3
      Backend/Api/Auth/Logout_test.go
  11. +2
    -2
      Backend/Api/Auth/Session.go
  12. +2
    -2
      Backend/Api/Auth/Signup.go
  13. +4
    -4
      Backend/Api/Auth/Signup_test.go
  14. +2
    -2
      Backend/Api/Friends/AcceptFriendRequest.go
  15. +4
    -4
      Backend/Api/Friends/AcceptFriendRequest_test.go
  16. +2
    -2
      Backend/Api/Friends/CreateFriendRequest.go
  17. +4
    -4
      Backend/Api/Friends/CreateFriendRequest_test.go
  18. +3
    -3
      Backend/Api/Friends/Friends.go
  19. +4
    -4
      Backend/Api/Friends/Friends_test.go
  20. +2
    -2
      Backend/Api/Friends/RejectFriendRequest.go
  21. +3
    -3
      Backend/Api/Messages/AddConversationImage.go
  22. +2
    -2
      Backend/Api/Messages/ChangeConversationMessageExpiry.go
  23. +3
    -3
      Backend/Api/Messages/Conversations.go
  24. +4
    -4
      Backend/Api/Messages/Conversations_test.go
  25. +2
    -2
      Backend/Api/Messages/CreateConversation.go
  26. +4
    -4
      Backend/Api/Messages/CreateConversation_test.go
  27. +3
    -3
      Backend/Api/Messages/CreateMessage.go
  28. +4
    -4
      Backend/Api/Messages/CreateMessage_test.go
  29. +2
    -2
      Backend/Api/Messages/MessageThread.go
  30. +4
    -4
      Backend/Api/Messages/MessageThread_test.go
  31. +2
    -2
      Backend/Api/Messages/UpdateConversation.go
  32. +4
    -4
      Backend/Api/Messages/UpdateConversation_test.go
  33. +4
    -4
      Backend/Api/Routes.go
  34. +2
    -2
      Backend/Api/Users/SearchUsers.go
  35. +2
    -2
      Backend/Api/Users/SearchUsers_test.go
  36. +1
    -1
      Backend/Database/Attachments.go
  37. +1
    -1
      Backend/Database/ConversationDetailUsers.go
  38. +1
    -1
      Backend/Database/ConversationDetails.go
  39. +1
    -1
      Backend/Database/FriendRequests.go
  40. +1
    -1
      Backend/Database/Init.go
  41. +1
    -1
      Backend/Database/MessageData.go
  42. +1
    -1
      Backend/Database/Messages.go
  43. +2
    -2
      Backend/Database/Seeder/FriendSeeder.go
  44. +2
    -2
      Backend/Database/Seeder/MessageSeeder.go
  45. +3
    -3
      Backend/Database/Seeder/UserSeeder.go
  46. +1
    -1
      Backend/Database/Sessions.go
  47. +1
    -1
      Backend/Database/UserConversations.go
  48. +1
    -1
      Backend/Database/Users.go
  49. +3
    -3
      Backend/Dockerfile
  50. +3
    -3
      Backend/Dockerfile.prod
  51. +5
    -5
      Backend/Tests/Init.go
  52. +2
    -2
      Backend/Util/UserHelper.go
  53. +1
    -1
      Backend/go.mod
  54. +3
    -3
      Backend/main.go
  55. +2
    -2
      README.md
  56. +1
    -1
      docker-compose.yml
  57. +1
    -1
      mobile/android/app/src/main/AndroidManifest.xml
  58. +13
    -0
      mobile/lib/components/qr_reader.dart
  59. +2
    -2
      mobile/lib/components/view_image.dart
  60. +1
    -1
      mobile/lib/main.dart
  61. +2
    -2
      mobile/lib/models/conversation_users.dart
  62. +2
    -2
      mobile/lib/models/conversations.dart
  63. +3
    -3
      mobile/lib/models/image_message.dart
  64. +1
    -1
      mobile/lib/models/my_profile.dart
  65. +2
    -2
      mobile/lib/utils/storage/conversations.dart
  66. +2
    -2
      mobile/lib/utils/storage/messages.dart
  67. +1
    -1
      mobile/lib/views/authentication/login.dart
  68. +3
    -3
      mobile/lib/views/authentication/signup.dart
  69. +1
    -1
      mobile/lib/views/authentication/unauthenticated_landing.dart
  70. +2
    -2
      mobile/lib/views/main/conversation/create_add_users_list.dart
  71. +16
    -3
      mobile/lib/views/main/conversation/detail.dart
  72. +1
    -1
      mobile/lib/views/main/conversation/edit_details.dart
  73. +3
    -3
      mobile/lib/views/main/conversation/list.dart
  74. +4
    -4
      mobile/lib/views/main/conversation/message.dart
  75. +4
    -4
      mobile/lib/views/main/conversation/permissions.dart
  76. +2
    -2
      mobile/lib/views/main/conversation/settings.dart
  77. +4
    -4
      mobile/lib/views/main/friend/list.dart
  78. +6
    -6
      mobile/lib/views/main/friend/list_item.dart
  79. +1
    -1
      mobile/lib/views/main/home.dart
  80. +1
    -1
      mobile/lib/views/main/profile/change_server_url.dart
  81. +5
    -5
      mobile/lib/views/main/profile/profile.dart
  82. +1
    -1
      mobile/pubspec.yaml

+ 3
- 3
Backend/Api/Auth/AddProfileImage.go View File

@ -5,9 +5,9 @@ import (
"encoding/json"
"net/http"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Util"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Util"
)
// AddProfileImage adds a profile image


+ 4
- 4
Backend/Api/Auth/AddProfileImage_test.go View File

@ -8,10 +8,10 @@ import (
"os"
"testing"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database/Seeder"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Tests"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database/Seeder"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Tests"
)
func Test_AddProfileImage(t *testing.T) {


+ 2
- 2
Backend/Api/Auth/ChangePassword.go View File

@ -5,8 +5,8 @@ import (
"io/ioutil"
"net/http"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
)
type rawChangePassword struct {


+ 3
- 3
Backend/Api/Auth/ChangePassword_test.go View File

@ -6,9 +6,9 @@ import (
"net/http"
"testing"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Api/Auth"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Tests"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Api/Auth"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Tests"
)
func Test_ChangePassword(t *testing.T) {


+ 2
- 2
Backend/Api/Auth/ChangeUserMessageExpiry.go View File

@ -5,8 +5,8 @@ import (
"io/ioutil"
"net/http"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
)
type rawChangeMessageExpiry struct {


+ 2
- 2
Backend/Api/Auth/ChangeUserMessageExpiry_test.go View File

@ -6,8 +6,8 @@ import (
"net/http"
"testing"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Tests"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Tests"
)
func Test_ChangeUserMessageExpiry(t *testing.T) {


+ 2
- 2
Backend/Api/Auth/Login.go View File

@ -6,8 +6,8 @@ import (
"net/http"
"time"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
)
type credentials struct {


+ 3
- 3
Backend/Api/Auth/Login_test.go View File

@ -6,9 +6,9 @@ import (
"net/http"
"testing"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Tests"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Tests"
)
func Test_Login(t *testing.T) {


+ 1
- 1
Backend/Api/Auth/Logout.go View File

@ -5,7 +5,7 @@ import (
"net/http"
"time"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
)
// Logout logs out from system


+ 3
- 3
Backend/Api/Auth/Logout_test.go View File

@ -4,9 +4,9 @@ import (
"net/http"
"testing"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Tests"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Tests"
)
func Test_Logout(t *testing.T) {


+ 2
- 2
Backend/Api/Auth/Session.go View File

@ -4,8 +4,8 @@ import (
"errors"
"net/http"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
)
func CheckCookie(r *http.Request) (Models.Session, error) {


+ 2
- 2
Backend/Api/Auth/Signup.go View File

@ -4,8 +4,8 @@ import (
"encoding/json"
"net/http"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
)
type signup struct {


+ 4
- 4
Backend/Api/Auth/Signup_test.go View File

@ -10,10 +10,10 @@ import (
"net/http/httptest"
"testing"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Api"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database/Seeder"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Api"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database/Seeder"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"github.com/gorilla/mux"
)


+ 2
- 2
Backend/Api/Friends/AcceptFriendRequest.go View File

@ -6,8 +6,8 @@ import (
"net/http"
"time"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"github.com/gorilla/mux"
)


+ 4
- 4
Backend/Api/Friends/AcceptFriendRequest_test.go View File

@ -8,10 +8,10 @@ import (
"net/http"
"testing"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database/Seeder"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Tests"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database/Seeder"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Tests"
)
func Test_AcceptFriendRequest(t *testing.T) {


+ 2
- 2
Backend/Api/Friends/CreateFriendRequest.go View File

@ -6,8 +6,8 @@ import (
"net/http"
"time"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
)
// CreateFriendRequest creates a FriendRequest from post data


+ 4
- 4
Backend/Api/Friends/CreateFriendRequest_test.go View File

@ -7,10 +7,10 @@ import (
"net/http"
"testing"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database/Seeder"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Tests"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database/Seeder"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Tests"
)
func Test_CreateFriendRequest(t *testing.T) {


+ 3
- 3
Backend/Api/Friends/Friends.go View File

@ -6,9 +6,9 @@ import (
"net/url"
"strconv"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Api/Auth"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Api/Auth"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
)
// FriendRequestList gets friend request list


+ 4
- 4
Backend/Api/Friends/Friends_test.go View File

@ -9,10 +9,10 @@ import (
"testing"
"time"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database/Seeder"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Tests"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database/Seeder"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Tests"
)
func Test_FriendRequestList(t *testing.T) {


+ 2
- 2
Backend/Api/Friends/RejectFriendRequest.go View File

@ -3,8 +3,8 @@ package Friends
import (
"net/http"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"github.com/gorilla/mux"
)


+ 3
- 3
Backend/Api/Messages/AddConversationImage.go View File

@ -5,9 +5,9 @@ import (
"encoding/json"
"net/http"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Util"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Util"
"github.com/gorilla/mux"
)


+ 2
- 2
Backend/Api/Messages/ChangeConversationMessageExpiry.go View File

@ -5,8 +5,8 @@ import (
"io/ioutil"
"net/http"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"github.com/gorilla/mux"
)


+ 3
- 3
Backend/Api/Messages/Conversations.go View File

@ -8,9 +8,9 @@ import (
"strconv"
"strings"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Api/Auth"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Api/Auth"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
)
// ConversationList returns an encrypted list of all Conversations


+ 4
- 4
Backend/Api/Messages/Conversations_test.go View File

@ -8,10 +8,10 @@ import (
"net/http"
"testing"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database/Seeder"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Tests"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database/Seeder"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Tests"
)
func Test_ConversationsList(t *testing.T) {


+ 2
- 2
Backend/Api/Messages/CreateConversation.go View File

@ -6,8 +6,8 @@ import (
"github.com/gofrs/uuid"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
)
// RawCreateConversationData for holding POST payload


+ 4
- 4
Backend/Api/Messages/CreateConversation_test.go View File

@ -7,10 +7,10 @@ import (
"net/http"
"testing"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database/Seeder"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Tests"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database/Seeder"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Tests"
"github.com/gofrs/uuid"
)


+ 3
- 3
Backend/Api/Messages/CreateMessage.go View File

@ -6,9 +6,9 @@ import (
"net/http"
"time"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Util"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Util"
)
type rawMessageData struct {


+ 4
- 4
Backend/Api/Messages/CreateMessage_test.go View File

@ -8,10 +8,10 @@ import (
"testing"
"time"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database/Seeder"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Tests"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database/Seeder"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Tests"
"github.com/gofrs/uuid"
)


+ 2
- 2
Backend/Api/Messages/MessageThread.go View File

@ -6,8 +6,8 @@ import (
"net/url"
"strconv"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"github.com/gorilla/mux"
)


+ 4
- 4
Backend/Api/Messages/MessageThread_test.go View File

@ -7,10 +7,10 @@ import (
"net/http"
"testing"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database/Seeder"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Tests"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database/Seeder"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Tests"
)
func Test_Messages(t *testing.T) {


+ 2
- 2
Backend/Api/Messages/UpdateConversation.go View File

@ -6,8 +6,8 @@ import (
"github.com/gofrs/uuid"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
)
type rawUpdateConversationData struct {


+ 4
- 4
Backend/Api/Messages/UpdateConversation_test.go View File

@ -7,10 +7,10 @@ import (
"net/http"
"testing"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database/Seeder"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Tests"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database/Seeder"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Tests"
)
func createConversation(key Seeder.AesKey) (Models.ConversationDetail, Models.UserConversation, Models.ConversationDetailUser, error) {


+ 4
- 4
Backend/Api/Routes.go View File

@ -4,10 +4,10 @@ import (
"log"
"net/http"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Api/Auth"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Api/Friends"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Api/Messages"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Api/Users"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Api/Auth"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Api/Friends"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Api/Messages"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Api/Users"
"github.com/gorilla/mux"
)


+ 2
- 2
Backend/Api/Users/SearchUsers.go View File

@ -5,8 +5,8 @@ import (
"net/http"
"net/url"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
)
// SearchUsers searches a for a user by username


+ 2
- 2
Backend/Api/Users/SearchUsers_test.go View File

@ -7,8 +7,8 @@ import (
"net/http"
"testing"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Tests"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Tests"
)
func Test_SearchUsers(t *testing.T) {


+ 1
- 1
Backend/Database/Attachments.go View File

@ -1,7 +1,7 @@
package Database
import (
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"gorm.io/gorm"
"gorm.io/gorm/clause"


+ 1
- 1
Backend/Database/ConversationDetailUsers.go View File

@ -1,7 +1,7 @@
package Database
import (
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"gorm.io/gorm"
"gorm.io/gorm/clause"


+ 1
- 1
Backend/Database/ConversationDetails.go View File

@ -1,7 +1,7 @@
package Database
import (
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"gorm.io/gorm"
"gorm.io/gorm/clause"


+ 1
- 1
Backend/Database/FriendRequests.go View File

@ -1,7 +1,7 @@
package Database
import (
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"gorm.io/gorm"
"gorm.io/gorm/clause"


+ 1
- 1
Backend/Database/Init.go View File

@ -3,7 +3,7 @@ package Database
import (
"log"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"gorm.io/driver/postgres"
"gorm.io/gorm"


+ 1
- 1
Backend/Database/MessageData.go View File

@ -1,7 +1,7 @@
package Database
import (
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"gorm.io/gorm"
"gorm.io/gorm/clause"


+ 1
- 1
Backend/Database/Messages.go View File

@ -1,7 +1,7 @@
package Database
import (
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"gorm.io/gorm"
"gorm.io/gorm/clause"


+ 2
- 2
Backend/Database/Seeder/FriendSeeder.go View File

@ -6,8 +6,8 @@ import (
"os"
"time"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
)
func seedFriend(userRequestTo, userRequestFrom Models.User, accepted bool) error {


+ 2
- 2
Backend/Database/Seeder/MessageSeeder.go View File

@ -3,8 +3,8 @@ package Seeder
import (
"encoding/base64"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"github.com/gofrs/uuid"
)


+ 3
- 3
Backend/Database/Seeder/UserSeeder.go View File

@ -3,9 +3,9 @@ package Seeder
import (
"encoding/base64"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Api/Auth"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Api/Auth"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
)
var userNames = []string{


+ 1
- 1
Backend/Database/Sessions.go View File

@ -1,7 +1,7 @@
package Database
import (
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"gorm.io/gorm/clause"
)


+ 1
- 1
Backend/Database/UserConversations.go View File

@ -1,7 +1,7 @@
package Database
import (
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"gorm.io/gorm"
"gorm.io/gorm/clause"


+ 1
- 1
Backend/Database/Users.go View File

@ -3,7 +3,7 @@ package Database
import (
"errors"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"gorm.io/gorm"
"gorm.io/gorm/clause"


+ 3
- 3
Backend/Dockerfile View File

@ -1,10 +1,10 @@
FROM golang:1.19-alpine
RUN mkdir -p /go/src/git.tovijaeschke.xyz/Capsule/Backend
RUN mkdir -p /go/src/git.tovijaeschke.xyz/Envelope/Backend
COPY ./ /go/src/git.tovijaeschke.xyz/Capsule/Backend
COPY ./ /go/src/git.tovijaeschke.xyz/Envelope/Backend
WORKDIR /go/src/git.tovijaeschke.xyz/Capsule/Backend
WORKDIR /go/src/git.tovijaeschke.xyz/Envelope/Backend
# For "go test" and development
RUN apk add gcc libc-dev inotify-tools


+ 3
- 3
Backend/Dockerfile.prod View File

@ -1,10 +1,10 @@
FROM golang:1.19-alpine
RUN mkdir -p /go/src/git.tovijaeschke.xyz/Capsule/Backend
RUN mkdir -p /go/src/git.tovijaeschke.xyz/Envelope/Backend
COPY ./ /go/src/git.tovijaeschke.xyz/Capsule/Backend
COPY ./ /go/src/git.tovijaeschke.xyz/Envelope/Backend
WORKDIR /go/src/git.tovijaeschke.xyz/Capsule/Backend
WORKDIR /go/src/git.tovijaeschke.xyz/Envelope/Backend
# For "go test"
RUN apk add gcc libc-dev


+ 5
- 5
Backend/Tests/Init.go View File

@ -10,11 +10,11 @@ import (
"net/url"
"time"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Api"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Api/Auth"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database/Seeder"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Api"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Api/Auth"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database/Seeder"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"github.com/gorilla/mux"
)


+ 2
- 2
Backend/Util/UserHelper.go View File

@ -5,8 +5,8 @@ import (
"log"
"net/http"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Models"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
"github.com/gorilla/mux"
)


+ 1
- 1
Backend/go.mod View File

@ -1,4 +1,4 @@
module git.tovijaeschke.xyz/tovi/Capsule/Backend
module git.tovijaeschke.xyz/tovi/Envelope/Backend
go 1.18


+ 3
- 3
Backend/main.go View File

@ -5,9 +5,9 @@ import (
"log"
"net/http"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Api"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database"
"git.tovijaeschke.xyz/tovi/Capsule/Backend/Database/Seeder"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Api"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Database/Seeder"
"github.com/gorilla/mux"
)


+ 2
- 2
README.md View File

@ -1,4 +1,4 @@
# Capsule
# Envelope
Encrypted messaging app
@ -8,10 +8,10 @@ Encrypted messaging app
- Add friends profile picture
- Add conversation pagination
- Add message pagination
- Add message pagination
- Finish off conversation settings page
- Finish message expiry
- Add back button to QR scanner
- Add more padding at message send text box
- Fix error when creating existing conversation between friends
- Sort conversation based on latest message
- Fix admin bool on conversation object frontend

+ 1
- 1
docker-compose.yml View File

@ -7,7 +7,7 @@ services:
ports:
- "8080:8080"
volumes:
- "./Backend:/go/src/git.tovijaeschke.xyz/Capsule/Backend"
- "./Backend:/go/src/git.tovijaeschke.xyz/Envelope/Backend"
links:
- postgres
- postgres-testing


+ 1
- 1
mobile/android/app/src/main/AndroidManifest.xml View File

@ -2,7 +2,7 @@
package="com.example.mobile">
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:label="Capsule"
android:label="Envelope"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
<activity


+ 13
- 0
mobile/lib/components/qr_reader.dart View File

@ -1,6 +1,7 @@
import 'dart:convert';
import 'dart:io';
import 'package:Envelope/components/custom_title_bar.dart';
import 'package:flutter/material.dart';
import 'package:pointycastle/impl.dart';
import 'package:qr_code_scanner/qr_code_scanner.dart';
@ -46,6 +47,18 @@ class _QrReaderState extends State<QrReader> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: CustomTitleBar(
title: Text(
'Add Friend',
style: TextStyle(
fontSize: 16,
fontWeight: FontWeight.w600,
color: Theme.of(context).appBarTheme.toolbarTextStyle?.color
)
),
showBack: true,
backgroundColor: Colors.transparent,
),
body: Column(
children: <Widget>[
Expanded(


+ 2
- 2
mobile/lib/components/view_image.dart View File

@ -1,5 +1,5 @@
import 'package:Capsule/components/custom_title_bar.dart';
import 'package:Capsule/models/image_message.dart';
import 'package:Envelope/components/custom_title_bar.dart';
import 'package:Envelope/models/image_message.dart';
import 'package:flutter/material.dart';
class ViewImage extends StatelessWidget {


+ 1
- 1
mobile/lib/main.dart View File

@ -13,7 +13,7 @@ void main() async {
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
static const String _title = 'Capsule';
static const String _title = 'Envelope';
@override
Widget build(BuildContext context) {


+ 2
- 2
mobile/lib/models/conversation_users.dart View File

@ -1,8 +1,8 @@
import 'dart:convert';
import 'dart:typed_data';
import 'package:Capsule/utils/encryption/aes_helper.dart';
import 'package:Capsule/utils/encryption/crypto_utils.dart';
import 'package:Envelope/utils/encryption/aes_helper.dart';
import 'package:Envelope/utils/encryption/crypto_utils.dart';
import 'package:pointycastle/impl.dart';
import '/models/conversations.dart';


+ 2
- 2
mobile/lib/models/conversations.dart View File

@ -2,8 +2,8 @@ import 'dart:convert';
import 'dart:io';
import 'dart:typed_data';
import 'package:Capsule/models/messages.dart';
import 'package:Capsule/models/text_messages.dart';
import 'package:Envelope/models/messages.dart';
import 'package:Envelope/models/text_messages.dart';
import 'package:mime/mime.dart';
import 'package:pointycastle/export.dart';
import 'package:sqflite/sqflite.dart';


+ 3
- 3
mobile/lib/models/image_message.dart View File

@ -2,9 +2,9 @@ import 'dart:convert';
import 'dart:io';
import 'dart:typed_data';
import 'package:Capsule/models/my_profile.dart';
import 'package:Capsule/utils/storage/get_file.dart';
import 'package:Capsule/utils/storage/write_file.dart';
import 'package:Envelope/models/my_profile.dart';
import 'package:Envelope/utils/storage/get_file.dart';
import 'package:Envelope/utils/storage/write_file.dart';
import 'package:mime/mime.dart';
import 'package:pointycastle/pointycastle.dart';
import 'package:uuid/uuid.dart';


+ 1
- 1
mobile/lib/models/my_profile.dart View File

@ -1,7 +1,7 @@
import 'dart:convert';
import 'dart:io';
import 'package:Capsule/utils/storage/get_file.dart';
import 'package:Envelope/utils/storage/get_file.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:pointycastle/impl.dart';
import 'package:shared_preferences/shared_preferences.dart';


+ 2
- 2
mobile/lib/utils/storage/conversations.dart View File

@ -1,7 +1,7 @@
import 'dart:convert';
import 'package:Capsule/exceptions/update_data_exception.dart';
import 'package:Capsule/utils/storage/get_file.dart';
import 'package:Envelope/exceptions/update_data_exception.dart';
import 'package:Envelope/utils/storage/get_file.dart';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
import 'package:pointycastle/export.dart';


+ 2
- 2
mobile/lib/utils/storage/messages.dart View File

@ -1,8 +1,8 @@
import 'dart:convert';
import 'dart:io';
import 'package:Capsule/models/messages.dart';
import 'package:Capsule/utils/storage/write_file.dart';
import 'package:Envelope/models/messages.dart';
import 'package:Envelope/utils/storage/write_file.dart';
import 'package:http/http.dart' as http;
import 'package:sqflite/sqflite.dart';
import 'package:uuid/uuid.dart';


+ 1
- 1
mobile/lib/views/authentication/login.dart View File

@ -177,7 +177,7 @@ class _LoginWidgetState extends State<LoginWidget> {
}).catchError((error) {
print(error);
showMessage(
'Could not login to Capsule, please try again later.',
'Could not login to Envelope, please try again later.',
context,
);
});


+ 3
- 3
mobile/lib/views/authentication/signup.dart View File

@ -1,8 +1,8 @@
import 'dart:convert';
import 'dart:typed_data';
import 'package:Capsule/components/flash_message.dart';
import 'package:Capsule/models/my_profile.dart';
import 'package:Envelope/components/flash_message.dart';
import 'package:Envelope/models/my_profile.dart';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
@ -176,7 +176,7 @@ class _SignupWidgetState extends State<SignupWidget> {
.then((dynamic) {
Navigator.of(context).popUntil((route) => route.isFirst);
}).catchError((error) {
showMessage('Failed to signup to Capsule, please try again later', context);
showMessage('Failed to signup to Envelope, please try again later', context);
});
},
child: const Text('Submit'),


+ 1
- 1
mobile/lib/views/authentication/unauthenticated_landing.dart View File

@ -46,7 +46,7 @@ class _UnauthenticatedLandingWidgetState extends State<UnauthenticatedLandingWid
),
const SizedBox(width: 15),
Text(
'Capsule',
'Envelope',
style: TextStyle(
fontSize: 40,
color: Theme.of(context).colorScheme.onBackground,


+ 2
- 2
mobile/lib/views/main/conversation/create_add_users_list.dart View File

@ -1,5 +1,5 @@
import 'package:Capsule/components/custom_circle_avatar.dart';
import 'package:Capsule/models/friends.dart';
import 'package:Envelope/components/custom_circle_avatar.dart';
import 'package:Envelope/models/friends.dart';
import 'package:flutter/material.dart';
class ConversationAddFriendItem extends StatefulWidget{


+ 16
- 3
mobile/lib/views/main/conversation/detail.dart View File

@ -1,6 +1,6 @@
import 'dart:io';
import 'package:Capsule/views/main/conversation/message.dart';
import 'package:Envelope/views/main/conversation/message.dart';
import 'package:flutter/material.dart';
import 'package:image_picker/image_picker.dart';
@ -25,6 +25,7 @@ class ConversationDetail extends StatefulWidget{
class _ConversationDetailState extends State<ConversationDetail> {
List<Message> messages = [];
MyProfile profile = MyProfile(
id: '',
username: '',
@ -36,6 +37,8 @@ class _ConversationDetailState extends State<ConversationDetail> {
bool showFilePicker = false;
List<File> selectedImages = [];
bool sendDisabled = false;
@override
Widget build(BuildContext context) {
return Scaffold(
@ -81,6 +84,9 @@ class _ConversationDetailState extends State<ConversationDetail> {
@override
void initState() {
print(widget.conversation.admin);
print(widget.conversation.adminSendMessages);
sendDisabled = widget.conversation.adminSendMessages && !widget.conversation.admin;
super.initState();
fetchMessages();
}
@ -202,6 +208,10 @@ class _ConversationDetailState extends State<ConversationDetail> {
GestureDetector(
onTap: (){
setState(() {
if (sendDisabled) {
return;
}
showFilePicker = !showFilePicker;
});
},
@ -224,8 +234,11 @@ class _ConversationDetailState extends State<ConversationDetail> {
Expanded(
child: TextField(
enabled: !sendDisabled,
decoration: InputDecoration(
hintText: 'Write message...',
hintText: sendDisabled ?
'Messages disabled for non-admins' :
'Write message...',
hintStyle: TextStyle(
color: Theme.of(context).hintColor,
),
@ -244,7 +257,7 @@ class _ConversationDetailState extends State<ConversationDetail> {
child: FittedBox(
child: FloatingActionButton(
onPressed: () async {
if (msgController.text == '' && selectedImages.isEmpty) {
if ((msgController.text == '' && selectedImages.isEmpty) || sendDisabled) {
return;
}
await sendMessage(


+ 1
- 1
mobile/lib/views/main/conversation/edit_details.dart View File

@ -1,6 +1,6 @@
import 'dart:io';
import 'package:Capsule/components/file_picker.dart';
import 'package:Envelope/components/file_picker.dart';
import 'package:flutter/material.dart';
import 'package:image_picker/image_picker.dart';


+ 3
- 3
mobile/lib/views/main/conversation/list.dart View File

@ -1,8 +1,8 @@
import 'dart:io';
import 'package:Capsule/components/custom_title_bar.dart';
import 'package:Capsule/models/friends.dart';
import 'package:Capsule/utils/storage/conversations.dart';
import 'package:Envelope/components/custom_title_bar.dart';
import 'package:Envelope/models/friends.dart';
import 'package:Envelope/utils/storage/conversations.dart';
import 'package:flutter/material.dart';
import '/models/conversations.dart';


+ 4
- 4
mobile/lib/views/main/conversation/message.dart View File

@ -1,7 +1,7 @@
import 'package:Capsule/components/view_image.dart';
import 'package:Capsule/models/image_message.dart';
import 'package:Capsule/models/my_profile.dart';
import 'package:Capsule/utils/time.dart';
import 'package:Envelope/components/view_image.dart';
import 'package:Envelope/models/image_message.dart';
import 'package:Envelope/models/my_profile.dart';
import 'package:Envelope/utils/time.dart';
import 'package:flutter/material.dart';
import '/models/messages.dart';


+ 4
- 4
mobile/lib/views/main/conversation/permissions.dart View File

@ -1,7 +1,7 @@
import 'package:Capsule/components/flash_message.dart';
import 'package:Capsule/exceptions/update_data_exception.dart';
import 'package:Capsule/utils/storage/conversations.dart';
import 'package:Capsule/utils/storage/database.dart';
import 'package:Envelope/components/flash_message.dart';
import 'package:Envelope/exceptions/update_data_exception.dart';
import 'package:Envelope/utils/storage/conversations.dart';
import 'package:Envelope/utils/storage/database.dart';
import 'package:flutter/material.dart';
import '/components/custom_title_bar.dart';


+ 2
- 2
mobile/lib/views/main/conversation/settings.dart View File

@ -1,8 +1,8 @@
import 'dart:convert';
import 'dart:io';
import 'package:Capsule/utils/storage/session_cookie.dart';
import 'package:Capsule/views/main/conversation/permissions.dart';
import 'package:Envelope/utils/storage/session_cookie.dart';
import 'package:Envelope/views/main/conversation/permissions.dart';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;


+ 4
- 4
mobile/lib/views/main/friend/list.dart View File

@ -1,7 +1,7 @@
import 'package:Capsule/components/custom_title_bar.dart';
import 'package:Capsule/components/qr_reader.dart';
import 'package:Capsule/views/main/friend/add_search.dart';
import 'package:Capsule/views/main/friend/request_list_item.dart';
import 'package:Envelope/components/custom_title_bar.dart';
import 'package:Envelope/components/qr_reader.dart';
import 'package:Envelope/views/main/friend/add_search.dart';
import 'package:Envelope/views/main/friend/request_list_item.dart';
import 'package:flutter/material.dart';
import '/models/friends.dart';


+ 6
- 6
mobile/lib/views/main/friend/list_item.dart View File

@ -1,9 +1,9 @@
import 'package:Capsule/components/custom_circle_avatar.dart';
import 'package:Capsule/models/conversations.dart';
import 'package:Capsule/models/friends.dart';
import 'package:Capsule/utils/storage/conversations.dart';
import 'package:Capsule/utils/strings.dart';
import 'package:Capsule/views/main/conversation/detail.dart';
import 'package:Envelope/components/custom_circle_avatar.dart';
import 'package:Envelope/models/conversations.dart';
import 'package:Envelope/models/friends.dart';
import 'package:Envelope/utils/storage/conversations.dart';
import 'package:Envelope/utils/strings.dart';
import 'package:Envelope/views/main/conversation/detail.dart';
import 'package:flutter/material.dart';
class FriendListItem extends StatefulWidget{


+ 1
- 1
mobile/lib/views/main/home.dart View File

@ -118,8 +118,8 @@ class _HomeState extends State<Home> {
@override
void initState() {
updateData();
super.initState();
updateData();
}
Widget loading() {


+ 1
- 1
mobile/lib/views/main/profile/change_server_url.dart View File

@ -111,7 +111,7 @@ WARNING: Do not use this feature unless you know what you\'re doing!
''';
String warning2 = '''
Changing the server url will disconnect you from all friends and conversations on this server, and connect you to a fresh environment. This feature is intended to be used by people that are willing to host their own Capsule server, which you can find by going to \nhttps://github.com/SomeUsername/SomeRepo.\n\n
Changing the server url will disconnect you from all friends and conversations on this server, and connect you to a fresh environment. This feature is intended to be used by people that are willing to host their own Envelope server, which you can find by going to \nhttps://github.com/SomeUsername/SomeRepo.\n\n
You can revert this by entering \nhttps://envelope-messenger.com\n on the login screen.
''';


+ 5
- 5
mobile/lib/views/main/profile/profile.dart View File

@ -2,11 +2,11 @@ import 'dart:convert';
import 'dart:io';
import 'dart:typed_data';
import 'package:Capsule/components/file_picker.dart';
import 'package:Capsule/components/flash_message.dart';
import 'package:Capsule/utils/encryption/aes_helper.dart';
import 'package:Capsule/utils/storage/session_cookie.dart';
import 'package:Capsule/utils/storage/write_file.dart';
import 'package:Envelope/components/file_picker.dart';
import 'package:Envelope/components/flash_message.dart';
import 'package:Envelope/utils/encryption/aes_helper.dart';
import 'package:Envelope/utils/storage/session_cookie.dart';
import 'package:Envelope/utils/storage/write_file.dart';
import 'package:flutter/material.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:image_picker/image_picker.dart';


+ 1
- 1
mobile/pubspec.yaml View File

@ -1,4 +1,4 @@
name: Capsule
name: Envelope
description: An encrypted messaging app
publish_to: 'none' # Remove this line if you wish to publish to pub.dev


Loading…
Cancel
Save