Skip to content

Commit

Permalink
feat(lib): rm comments
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-suwala committed Dec 4, 2023
1 parent 9b99560 commit a1e9772
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 0 additions & 2 deletions lib/src/crypto-utils.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { Message } from "./entities/message"
import PubNub from "pubnub"
import { TextMessageContent } from "./types"
import { Chat } from "./entities/chat"
// pubNubCryptoModule: typeof PubNub.CryptoModule

export class CryptoUtils {
static decrypt({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useCallback, useContext, useEffect, useState } from "react"
import { Bubble } from "react-native-gifted-chat"
import { EnhancedIMessage } from "../../utils"
import { Image, Linking, View } from "react-native"
import { Linking, Platform, View } from "react-native"
import { Quote } from "../quote"
import { Text } from "../../ui-components"
import { Message, MixedTextTypedElement } from "@pubnub/chat"
Expand Down Expand Up @@ -132,12 +132,10 @@ export function MessageText({ onGoToMessage, messageProps }: MessageTextProps) {
)

const renderImage = () => {
if (!imageSrc) {
if (!imageSrc || Platform.OS !== "web") {
return
}
// console.log("src?", imageSrc)
// display just one image for now
// return <Image source={{ uri: imageSrc }} style={{ width: 100, height: 100 }} />
return <img src={imageSrc} style={{ width: 100, height: 100 }} />
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ const styles = StyleSheet.create({
alignItems: "center",
},
actionsContainer: {
width: 80,
width: Platform.OS === "web" ? 80 : 40,
height: 40,
justifyContent: "center",
alignItems: "center",
Expand Down

0 comments on commit a1e9772

Please sign in to comment.